Skip to content

Instantly share code, notes, and snippets.

@palaniraja
Created June 17, 2011 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save palaniraja/1031012 to your computer and use it in GitHub Desktop.
Save palaniraja/1031012 to your computer and use it in GitHub Desktop.
TestViewController to test TKAlertCenter issue with UIAlertView
-(IBAction) testTapped:(id)sender{
[[TKAlertCenter defaultCenter] postAlertWithMessage:NSLocalizedString(@"Before an alert", nil)];
UIAlertView *av = [[UIAlertView alloc] initWithTitle:@"TEST" message:@"TEST MSG"
delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:nil];
[av show];
[av release];
}
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
[[TKAlertCenter defaultCenter] postAlertWithMessage:NSLocalizedString(@"After the alert", nil)];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment