私は金髪の瞬間を持っていると思います。[編集]->[メールを選択]->[削除]をクリックしたときにiPhoneメールアプリが使用するコントロールは何ですか。「メッセージの削除」または「キャンセル」というポップアップが表示されます。
「メッセージの削除」ボタンと「キャンセル」ボタンを保持するコントロールは何ですか?何か案は?
前もって感謝します
私は金髪の瞬間を持っていると思います。[編集]->[メールを選択]->[削除]をクリックしたときにiPhoneメールアプリが使用するコントロールは何ですか。「メッセージの削除」または「キャンセル」というポップアップが表示されます。
「メッセージの削除」ボタンと「キャンセル」ボタンを保持するコントロールは何ですか?何か案は?
前もって感謝します
次のようなカスタム ポップアップを実装できます。
@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
UIActionSheet
またはUIAlertView
..あなたが何について話しているのかわかりませんが、それは2つのうちの1つでなければなりません。
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];