首页 > 代码库 > 一行代码巧妙实现iOS返回button

一行代码巧妙实现iOS返回button

一行代码巧妙实现iOS返回button:

self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[[UIImage imageNamed:@"back"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]  style:UIBarButtonItemStyleDone target:self.navigationController action:@selector(popViewControllerAnimated:)];

一行代码巧妙实现iOS返回button