- (UIViewController*)backViewController
{
NSInteger myIndex = [self.navigationController.viewControllers indexOfObject:self];
if( myIndex !=0&& myIndex !=NSNotFound) {
return [self.navigationController.viewControllers objectAtIndex:myIndex-1];
}else{
returnnil;
}
}