alertviewstyle
ユーザーからのテキスト入力を使用するために使用しようとしています。alertview
スタイルを変更せずに を表示すると、機能します。
スタイルを に変更すると、次のUIAlertViewStylePlainTextInput
エラーが発生します。
エラー: アドレスには、オブジェクト ファイル内のセクションを指すセクションが含まれていません。
私は次のコードを使用しています:
nameAlertView =
[[UIAlertView alloc] initWithTitle:[langFile objectForKey:@"sequenceTitel"]
message:[langFile objectForKey:@"sequenceTitel"]
delegate:self
cancelButtonTitle:[langFile objectForKey:@"cancel"]
otherButtonTitles:[langFile objectForKey:@"save"], nil];
nameAlertView.alertViewStyle = UIAlertViewStylePlainTextInput;
[nameAlertView show];
[nameAlertView release];
編集
私は iOS 5.1 を使用しており、デバッガーから次のフィードバックがありました。
Training Tool(2332,0x3f080d98) malloc: * mmap(size=1342177280) 失敗 (エラーコード=12) エラー: 領域を割り当てられません * * デバッグするために malloc_error_break にブレークポイントを設定します
私の見解で同じアクションを完了すると時々うまくいくので、それは奇妙です