2014-01-01から1ヶ月間の記事一覧

スクロールバー点滅

スクロールバー点滅 [scrollView flashScrollIndicators];

NSArrayの要素が文字列の場合に数値としてソートする場合

http://ssdkfk.wordpress.com/2011/07/25/nsarrayにnsdictionaryを入れている時のソートはどうする?/ NSSortDescriptor *descriptor=[[[NSSortDescriptor alloc] initWithKey:@"number.intValue" ascending:YES] autorelease]; NSLog(@"Sorted :::: %@",[[d…

SQL Server からの返答が遅い場合の対応策

インデックスの再作成により改善する可能性がある。 以下のページの手順に従い、インデックスを再構成。 インデックスを再構築する方法 (SQL Server Management Studio) http://technet.microsoft.com/ja-jp/library/ms187874(v=sql.105).aspx

iOS データ保護(Data Protection)

http://cocoadays.blogspot.jp/2011/04/ios-data-protection.html データ保護。

ios7でundeclared selector警告が出る場合の対応

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];

iOS ローカルファイル上書き

http://www.deftrash.com/blog/archives/2010/10/iphone_file_append.html を参考。 一度削除して再配置。

iOS7 StatusBarの文字色を白色に変更

http://tryworks-design.com/?p=2333 を参考にした。

SQL Server で同じインスタンスにDBをコピー

http://blacky-obrien.blogspot.jp/2012/10/sql-server.html を参考にした。 注意点は、バックアップ作成の際に バックアップコンポーネントでファイル及びファイルグループ を選択すること。