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.
我试图找到答案,但我没有找到任何答案。请帮助我在 uinavigationbar 的标题中显示行数,就像在注释中一样
就像将标题设置为类似的东西一样简单
self.title = [NSString stringWithFormat:@"Notes (%i)", self.notes.count];
假设这notes是您存储Note元素的数组。
notes
Note