2013-12-17から1日間の記事一覧

NSBundle を define する

iOS

いちいち書くのめんどくさいので define するといい。 [objc] #define MyLocalizedString(stringKey) \ [[NSBundle mainBundle] localizedStringForKey:stringKey value:stringKey table:@"hogePlist"] [/objc] 僕の環境だとtableをちゃんと指定してあげない…

MFMailComposeResultFailed ってどのタイミングで実行されるの?

iOS

メールがエラーになった時に MFMailComposeResultFailed が呼ばれると思ったけど、sendすると MFMailComposeResultSent がすぐ呼ばれるみたい。airplane modeでやっても MFMailComposeResultSent がよばれる。 [objc] //ぐぐるとこんなふうにコード書いてる…