Advertisement
Guest User

Untitled

a guest
Aug 10th, 2011
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. - (void)viewDidLoad {
  2. [super viewDidLoad];
  3. if (![@"2" isEqualToString:[[NSUserDefaults standardUserDefaults] objectForKey:@"alert"]]) {
  4. [[NSUserDefaults standardUserDefaults] setValue:@"1" forKey:@"alert"];
  5. [[NSUserDefaults standardUserDefaults] synchronize];
  6.  
  7. UIAlertView *alert1 = [[UIAlertView alloc] initWithTitle:@"Follow us on Twitter"
  8. message:@"Want free updates, free stuff and keep up-to-date with the current on goings. Follow us now!"
  9. delegate:nil
  10. cancelButtonTitle:@"No Thanks"
  11. otherButtonTitles:@"Yes, I'll Follow" , nil];
  12. [alert1 show];
  13. [alert1 release];
  14.  
  15.  
  16. }
  17. }
  18.  
  19. - (void)alertView: (UIAlertView *)alertView clickedButtonAtIndex: (NSInteger)buttonIndex
  20. {
  21. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://twitter.com/link"]];
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement