iOS5以降で簡単に使える4種類のUIAlertView

iOS5.0から「alertViewStyle」というプロパティが追加されたので、
4種類のアラートを簡単に表示できるようになりました。



「setAlertViewStyle:」の引数に下記の4種類のどれかを指定します。
UIAlertViewStyleDefault
UIAlertViewStyleSecureTextInput
UIAlertViewStylePlainTextInput
UIAlertViewStyleLoginAndPasswordInput


Related posts:

  1. Interface Builder (Storyboard) を使わずにUIPickerViewを使う方法
  2. Interface Builder (Storyboard) を使わずにUITableViewを使う方法

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

*

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>