2014-02-01から1ヶ月間の記事一覧
http://stackoverflow.com/questions/1483581/get-notified-when-uitableview-has-finished-asking-for-data まだ未実験だが上記の情報でできそうだ。
[[NSUserDefaults standardUserDefaults] dictionaryRepresentation]; デバッグ時はコンソールにて po [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]
[self performSelector:@selector(methodA:) withObject:nil afterDelay:0.1]; メソッドに引数を渡す場合はwithObjectに設定。
exit(0); で、終了します。 しかしAppStoreのガイドライン違反なのでリジェクトされるようです。 企業向けアプリや実験時に。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath にて [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
NSString *str = [NSStringFromSelector(originalStr) stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@":"]]; この場合は「:」をTrimしている。
objective-c。 ■実行中のメソッド名の取得 NSStringFromSelector(_cmd)) ■文字列で指定してのメソッド呼び出し [self performSelector:NSSelectorFromString(@"methodA")];
import <QuartzCore/QuartzCore.h> [[uiview layer] setBorderColor:[[UIColor whiteColor] CGColor]]; [[uiview layer] setBorderWidth:1.0];</quartzcore/quartzcore.h>
tableView.separatorColor = [UIColor clearColor]; tableView.separatorStyle = UITableViewCellSeparatorStyleNone; スタイルのみの指定で良さそうですが、Groupタイプのテーブルでは表示されてしまうようです。
label.layer.borderColor = [UIColor blackColor].CGColor; label.layer.borderWidth = 1.0;
グレートタイムライン構想。 宇宙の始まりから、現在、未来までの出来事を一つのタイムラインに集約した、すべてのタイムライン。 イメージは「タイムライン版のWikipedia」 「中国三国志の時代、日本は卑弥呼の邪馬台国だった」 「イギリスで産業革命が始ま…
textField.autocapitalizationType = UITextAutocapitalizationTypeNone; textField.autocorrectionType = UITextAutocorrectionTypeNo; 勝手に変更されるのをやめたかった! そしてWordの世話焼きな自動変換を思い出した。
- (id)init __attribute__((unavailable("init is not available"))); これを.hの方に記述。
[sql deleteCharactersInRange:NSMakeRange([sql length] - 1, 1)];