Skip to content

Instantly share code, notes, and snippets.

UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
number.text = pasteboard.string;
@interface DetaSetTestViewController : UIViewController {
IBOutlet UILabel *number;
}
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
NSString *ds= @"hoge";
[pasteboard setValue:ds forPasteboardType:@"DataSet.text"];
// DataSetアプリのURLスキームを指定する.
NSURL *url = [NSURL URLWithString:@"DataSet:"];
[[UIApplication sharedApplication]openURL:url];
UIPasteboard *pasteboard = [UIPasteboard PasteboardWithName:"DataSet" create:yes];
NSString *ds = @"aaaa";
[pasteboard setValue:ds forPasteboardType:@"DataSet.text"];
NSURL *url = [NSURL URLWithString:@"DataSet:"];
[[UIApplication sharedApplication]openURL:url];
UIPasteboard *pasteboard = [UIPasteboard pasteboardWithName:@"DataSet" create:NO];
number.text = pasteboard.string;
#pragma strict
var Cube:GameObject;
function Start () {
for(var i=0;i<100;i++){
for(var j=0;j<100;j++){
Instantiate(Cube, Vector3(i,0,j), Quaternion.identity);
}
}
}
<?php
$array = array(
"foo" => "bar",
"bar" => "foo",
);
<?php
$array = [
"foo" => "bar",
"bar" => "foo",
];
// スクリプトで重力加速度を変更する
function Update() {
Physics.gravity = new Vector3(0.0f,-9.81f,0.0f);
}
Undefined symbols for architecture armv7:
"__curOrientation", referenced from:
-[UnityAppController application:didFinishLaunchingWithOptions:] in UnityAppController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)