0

私は金髪の瞬間を持っていると思います。[編集]->[メールを選択]->[削除]をクリックしたときにiPhoneメールアプリが使用するコントロールは何ですか。「メッセージの削除」または「キャンセル」というポップアップが表示されます。

「メッセージの削除」ボタンと「キャンセル」ボタンを保持するコントロールは何ですか?何か案は?

前もって感謝します

4

3 に答える 3

2

次のようなカスタム ポップアップを実装できます。

@implementation UIView(Animation)

    -(void)animationElasticPopup {    
    self.transform = CGAffineTransformMakeScale(0.001f, 0.001f);

    [UIView animateWithDuration:0.4 animations:^{
        [UIView setAnimationDelay:0];
        self.transform = CGAffineTransformMakeScale(1.1f, 1.1f);//1.1
        self.alpha = 1.f;
    } completion:^(BOOL finished) {
        [UIView animateWithDuration:0.1 animations:^{            
            self.transform = CGAffineTransformMakeScale(0.9f, 0.9f);//0.9
        } completion:^(BOOL finished) {            
            [UIView animateWithDuration:0.1 animations:^{                
                self.transform = CGAffineTransformMakeScale(1.f, 1.f);//1.0
            } completion:^(BOOL finished) {
            }];            
        }];
    }];}





@end
于 2012-07-03T04:34:34.353 に答える
1

UIActionSheetまたはUIAlertView..あなたが何について話しているのかわかりませんが、それは2つのうちの1つでなければなりません。

于 2012-07-03T03:14:30.413 に答える
0

UIActionSheet探しているクラスです。表示するのは非常に簡単で、UIAlertView とよく似ています。

UIActionSheet *confirmationSheet = [[UIActionSheet alloc] initWithTitle:@"Are you sure you want to cancel?" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Delete" otherButtonTitles:@"Save Draft", nil]
[confirmationSheet showFromToolbar:self.myToolbar];
于 2012-07-03T03:21:12.050 に答える