Skip to content
Guest Big Announcement

How do I add a 3rd option to an UIAlertView?

Featured Replies

What would be the 3rd button code if I wanted to add a 3rd button to an UIAlertView be?

After 

cancelButtonTitle:@"" 
otherButtonTitles:@""

Thanks.

6 hours ago, Fadexz said:

What would be the 3rd button code if I wanted to add a 3rd button to an UIAlertView be?

After 


cancelButtonTitle:@"" 
otherButtonTitles:@""

Thanks.

Which ios development is this? 6, 7, etc..

On 10/2/2017 at 12:08 PM, Fadexz said:

What would be the 3rd button code if I wanted to add a 3rd button to an UIAlertView be?

After 


cancelButtonTitle:@"" 
otherButtonTitles:@""

Thanks.

See if this helps you out. https://developer.apple.com/documentation/uikit/uialertview/1620765-initwithtitle

19 hours ago, Fadexz said:

Oh wait, so it says otherButtonTitles, ...; meaning I can just add another to that?


            otherButtonTitles:(NSString *)otherButtonTitles, ...;

Yes. Basically the same thing, but an alternative to uialertview. Uialertview was deprecated in your previous update; ios 8.

  • Author
2 hours ago, Baker Ya Maker said:

Yes. Basically the same thing, but an alternative to uialertview. Uialertview was deprecated in your previous update; ios 8.

So what would I write for the third button?

Updated by Fadexz

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.