2010-06-30から1日間の記事一覧

UIAlertViewのmessageを左寄せにする方法

http://www.iphonedevsdk.com/forum/iphone-sdk-development/11676-left-align-text-uialertview.html今回も助っ人ガイジンさん大活躍。 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"hoge" message:@"hogehoge" delegate:self cancelButtonT…

文字列比較のお作法

参考:「入門 Objective-C 2.0」 翔泳社 P.139いや〜、はまった…。文字列の比較。ただ単に==演算子で比較してもダメなんですね…。つまり、 NSString *hoge1 = @"piyo"; NSString *hoge2 = @"piyo"; if (hoge1 == hoge2) { // } else { //何を試してもこっちに…