統計情報(30日間)


最新情報をツイート


人気の投稿

シンプルだが綺麗で使い勝手の良いアラートビュー - WCAlertView

このエントリーをはてなブックマークに追加

いくつかの色が用意されている。黒がなかなかいい。









Blocksベースで書ける。
[WCAlertView showAlertWithTitle:@"Custom AlertView Title" 
                        message:@"You can do a lot of additional setup using WCAlertView." 
                        customizationBlock:^(WCAlertView *alertView) {

                            alertView.style = WCAlertViewStyleVioletHatched;

    } completionBlock:^(NSUInteger buttonIndex, WCAlertView *alertView) {

    } cancelButtonTitle:@"Cancel" otherButtonTitles:@"Okay",nil];
カスタマイズ処理もBlockになっているは面白い。いいアイディア。

ID、パスワード付きもスタイル指定一つで使える。
[WCAlertView showAlertWithTitle:@"Some title" message:@"Custom message" customizationBlock:^(WCAlertView *alertView) {

        alertView.alertViewStyle = UIAlertViewStyleSecureTextInput;

    } completionBlock:^(NSUInteger buttonIndex, WCAlertView *alertView) {

    } cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok", nil];

デザインがいいし、APIも使い勝手が良さそうなので使ってみたい。

ライセンス:MIT

Leave a Reply