Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)viewDidLoad {
- [super viewDidLoad];
- if (![@"2" isEqualToString:[[NSUserDefaults standardUserDefaults] objectForKey:@"alert"]]) {
- [[NSUserDefaults standardUserDefaults] setValue:@"1" forKey:@"alert"];
- [[NSUserDefaults standardUserDefaults] synchronize];
- UIAlertView *alert1 = [[UIAlertView alloc] initWithTitle:@"Follow us on Twitter"
- message:@"Want free updates, free stuff and keep up-to-date with the current on goings. Follow us now!"
- delegate:nil
- cancelButtonTitle:@"No Thanks"
- otherButtonTitles:@"Yes, I'll Follow" , nil];
- [alert1 show];
- [alert1 release];
- }
- }
- - (void)alertView: (UIAlertView *)alertView clickedButtonAtIndex: (NSInteger)buttonIndex
- {
- [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://twitter.com/link"]];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement