iphone - 导航栏中的 UIButton,如 Tweetbot

标签 iphone objective-c ios uinavigationbar uinavigationitem

我想复制一个类似导航栏的 Tweetbot。
我仍在搜索是否可以将 UIButton 放置在 UINavigationBarand 中的标题位置,以使其完美适合右侧和左键就像在 Tweetbot 应用程序中完成的那样。
当我尝试这样做时,超过一定大小 self.navigationItem.titleView 会自动缩小

如果我遗漏了一些明显的东西,请告诉我,
谢谢

我提供了两个截图让你明白我在说什么 Button normal
Button hihlighted

最佳答案

他们可能推出了自己的 UINavigationBar 和/或 UINavigationController 实现。我想尝试破解 UIKit 是不值得的,因为它非常脆弱并且不能适应 future 。

关于iphone - 导航栏中的 UIButton,如 Tweetbot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12883884/

相关文章:

ios - 在 iOS 上从版本 1.0 顺利过渡到 2.0 的注意事项

iphone - UITableViewController.view 崩溃

ios - 如何让 UIButton 只出现在最后一个单元格中?

ios - 如何将语音转换为文本 iPhone?

iphone - Xcode - 资源已经存在?

ios - 删除 tabBarController 中的所有对象,然后恢复默认的 tabBar?

ios - 如何使用 Xamarin 在 iOS 的 NavigationController 中更改 1 个字符的标题文本颜色

memory-management - iPhone 开发 - 为什么它使用 8MB?

iphone - 在 Xcode 中启用以编程方式创建的按钮

iOS swift : Pushing a View Onto the Stack From Within a Custom Tableview Cell