Skip to content

Instantly share code, notes, and snippets.

@tomokr
tomokr / PY0101EN-1-1-Types.ipynb
Created November 5, 2019 15:36
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomokr
tomokr / file0.m
Created November 15, 2013 14:39
delegateでモーダル画面間の値の受け渡し ref: http://qiita.com/tomokr/items/18d78ed53ac1deb72a39
@protocol つくるDelegate;
@interface つくる: UIViewController{
//もともとあるやつ
}
@property (weak, nonatomic) id<つくるDelegate> delegate;
// イニシャライザ
@tomokr
tomokr / file0.m
Created November 14, 2013 15:19
iOSアプリの部品の表示/非表示を切り替える方法 ref: http://qiita.com/tomokr/items/130153809fdea502f62d
btn.alpha = 0; //表示されない
btn.alpha = 1; //表示される
@tomokr
tomokr / file0.m
Created November 8, 2013 15:07
NSUserdefaultsにNSMutablearrayを格納する/読み出す ref: http://qiita.com/tomokr/items/3ba8fe9997e3fb52a16f
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
NSMutableArray *array = [[NSMutableArray alloc] init];
NSData *data = [NSKeyedArchiver archivedDataWithRootObject:array];
[ud setObject:data forKey:@"array_key"];