iphone - UIBarButton 作为后退按钮样式

标签 iphone

嗨 我在导航栏上将 UIBarButton 显示为后退按钮,如何才能获得 UIButton 的默认后退按钮样式。

问候 萨姆。

最佳答案

在父 View Controller 中,当在 didselectrowInIndex 方法中推送 View 时,只需使用以下代码:

self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStyleBordered target:self action:nil];
[self.navigationItem.backBarButtonItem release];

关于iphone - UIBarButton 作为后退按钮样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4277397/

相关文章:

iphone - uiNavigationController 推送 View Controller 时出错

iphone - 适用于 iPhone 操作系统的数学渲染库

iphone - 尝试播放音频文件

iphone - 如何更改 UISearchbar 取消按钮的文本颜色

iphone - 关于UIAlert跳转到一个xib

iphone - 检测应用内购买的重复购买

iphone - 如何为 iPhone/iPad 应用程序创建或设置私有(private)应用程序商店

ios - CAShapeLayer 不可见

iphone - iOS图像比较

ios - 在 UITableViewController 上使用 UIViewController 类