2014-01-01から1年間の記事一覧
- (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)];
スクロールバー点滅 [scrollView flashScrollIndicators];
http://ssdkfk.wordpress.com/2011/07/25/nsarrayにnsdictionaryを入れている時のソートはどうする?/ NSSortDescriptor *descriptor=[[[NSSortDescriptor alloc] initWithKey:@"number.intValue" ascending:YES] autorelease]; NSLog(@"Sorted :::: %@",[[d…
インデックスの再作成により改善する可能性がある。 以下のページの手順に従い、インデックスを再構成。 インデックスを再構築する方法 (SQL Server Management Studio) http://technet.microsoft.com/ja-jp/library/ms187874(v=sql.105).aspx
http://cocoadays.blogspot.jp/2011/04/ios-data-protection.html データ保護。
SEL setErrorSelector = sel_registerName("setError:"); if([self respondsToSelector:setErrorSelector]) { [self performSelector:setErrorSelector withObject:[NSError errorWithDomain:@"SomeDomain" code:1 userInfo:nil]]; } 一度SELに登録し使用す…
http://www.objectivec-iphone.com/foundation/Class/performeSelector.html 画面表示時にローディング画面を表示し、その後時間の掛かる処理をする場合。
NSString * retURL = [NSString stringWithFormat:@"xxxxx://xxxxx?param=1"]; NSURL* url = [NSURL URLWithString:retURL]; UIApplication* app = [UIApplication sharedApplication]; if ([app canOpenURL:url]) [app openURL:url];
http://www.deftrash.com/blog/archives/2010/10/iphone_file_append.html を参考。 一度削除して再配置。
http://tryworks-design.com/?p=2333 を参考にした。
http://blacky-obrien.blogspot.jp/2012/10/sql-server.html を参考にした。 注意点は、バックアップ作成の際に バックアップコンポーネントでファイル及びファイルグループ を選択すること。