I searched for many times but i din't find i have table view with some cells when i clicked the cell it is navigating to another view while navigating i need to put some time delay and in that time delay a progress bar has to load
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *str_date=[data objectAtIndex:indexPath.row];
[[NSUserDefaults standardUserDefaults] setObject:str_date forKey:@"str_date"];
NSString *str_time=[time objectAtIndex:indexPath.row];
[[NSUserDefaults standardUserDefaults] setObject:str_time forKey:@"str_time"];
NSString *str_image=[images objectAtIndex:indexPath.row];
[[NSUserDefaults standardUserDefaults] setObject:str_image forKey:@"str_image"];
detailview *dv=[[detailview alloc]init];
[self presentViewController:dv animated:YES completion:nil];
}