いくつかの色が用意されている。黒がなかなかいい。
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







