呼び出しコードはこんな感じ。 [LKAccountPanel showWithTitle:@"Test" completion:^(BOOL result, NSString* username, NSString* password) { NSLog(@"result: %d\nusername: %@\npassword: %@", result, username, password); }];結果を Blocks で処理できるようにしてみた。 [2011-05-17 追記] 非同期用のメソッドを追加しました。 BOOL result = [LKAccountPanel showWithTitle:@"Test2" username:&username password:&password]; NSLog(@"done2"); NSLog(@"result2: %d\nusernam
[前回] Cocoaの日々: UIAlertView 上に UIProgressView を載せる 前回のコメントで 335gさんから UIAlertView のサイズ変更とボタン位置の変更ができることを教えてもらったので試してみた。 サンプル 前回のコードでキャンセルボタンをそのまま表示するとこんな風になっていた。 実装 方法は UIAlertViewDelegate のメソッドを使う。 - (void)willPresentAlertView:(UIAlertView *)alertView { // (1) サイズと位置を変更する CGRect frame = alertView.frame; frame.origin.y -= 15; frame.size.height += 30; alertView.frame = frame; // ボタン位置を変更する for (UIVie
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く