Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法让 UILabel 居中在导航栏的顶部。我希望标签说出一个级别编号并以编程方式对其进行更新,但我不确定如何执行此操作。我也想尽量减少内存。
预先感谢您的任何帮助 :)
self.navigationItem.title = @"The title";
利用:
[self.navigationItem setTitle:@"The title"];
为了更改标签上的文本。