{
NSString *alerttitle = NSLocalizedString(@"Alert", nil);
NSString *alertmessage = NSLocalizedString(@"Message", nil);
NSString *alertcancelbtntitle = NSLocalizedString(@"OK", nil);
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:alerttitle message:alertmessage delegate:self cancelButtonTitle:alertcancelbtntitle otherButtonTitles: nil];
alertView.tag = 1100;
[alertView show];
}
#pragma mark - alterview delegate
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
if(alertView.tag == 1100) {
//double delayInSeconds = 0.5;
//dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
//dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
[self.navigationController popViewControllerAnimated:YES];
//});
}
}