2016-03-20 7 views
1

iOSでInstagramアンフォローアラート(2つのボタン、イメージ、メッセージ)のようなアラートを作成するにはどうすればよいですか?準備ができているコンポーネントはありますか?そこ実装(UIAlertController)があるが、画像なしアラートを作成する方法、iOSのボタンを下からスライドする方法はありますか?

enter image description here

+0

いずれかが内蔵ませんがあります:あなたはこの記事でUIAlertControllerに画像を追加する方法の詳細情報を見つけることができます

UIAlertController* deleteAlert = [UIAlertController alertControllerWithTitle:@"Unfollow?" message: preferredStyle:UIAlertControllerStyleActionSheet]; UIAlertAction* unfollowAction = [UIAlertAction actionWithTitle:@"Unfollow" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * action) { //Code to unfollow }]; UIAlertAction* cancelAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", nil) style:UIAlertActionStyleCancel handler:^(UIAlertAction * action) { }]; [deleteAlert addAction:unfollowAction]; [deleteAlert addAction:cancelAction]; [self presentViewController:deleteAlert animated:YES completion:nil]; 

:ここ

は、実施例ですこの機能は利用可能です。 – ebby94

答えて

関連する問題