Skip to content
Guest Big Announcement

Making a button have a UIAlert

Featured Replies

hey! so im trying to make a button have a UIAlert, this is what i have so far, just from looking around the site.

  [mutableNewArr addObject:[[[%c(SettingsOptionButton) alloc] initWithTitle:@"Credits" iconImage:nil executeOnTap:^(void)
    { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Welcome to k8"
        message:@"Thank you for trying out k8  atomikpanda and I appreciate it, before you get started you must know that the new settings will be in the Kik settings itself or in the group/chat settings  no more going back to the settings app!                  Enjoy!" delegate:nil cancelButtonTitle:@"Yay! Thank you!"
        otherButtonTitles:nil];

    [alert show];
    [alert release];
  }

but when I try to compile, it I get this error.... http://gyazo.com/8f0b5e5c5bc0c9cc4dfdf813e0d57b40

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.