刚才有个朋友在群里问,怎么自定义标题,让它与众不同。例如这样:
![](https://img.haomeiwen.com/i2926059/65a273adfeee9678.png)
![](https://img.haomeiwen.com/i2926059/83006a13e1d78a14.png)
其实标题可以用任意View自定义的,比如用图像定义,你想有什么效果就有什么效果了。
self.navigationItem.titleView = [[UIImageView alloc] initWithImage:logo_xxx];
刚才有个朋友在群里问,怎么自定义标题,让它与众不同。例如这样:
其实标题可以用任意View自定义的,比如用图像定义,你想有什么效果就有什么效果了。
self.navigationItem.titleView = [[UIImageView alloc] initWithImage:logo_xxx];
本文标题:iOS 如何自定义导航标题让标题与众不同
本文链接:https://www.haomeiwen.com/subject/glrydftx.html
网友评论