-(void) createLeftButton{
[self.navigationItemsetHidesBackButton:YES];
UIButton*btn = [UIButtonbuttonWithType:UIButtonTypeCustom];
btn.frame=CGRectMake(10, 5, 20, 18);
[btnsetBackgroundImage:[UIImageimageNamed:@"back-arrow.png"]forState:UIControlStateNormal];
[btnaddTarget:selfaction:@selector(goBackAction)forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem*back=[[UIBarButtonItemalloc]initWithCustomView:btn];
self.navigationItem.leftBarButtonItem=back;
}
-(void)goBackAction{
[self.navigationControllerpopViewControllerAnimated:YES];
}