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.
我想以编程方式获取 tabView 名称。这样做的属性是什么?
我试过了:
[标签视图名称]; [标签视图值];
但这些似乎都不起作用。
非常感谢!
要在 中获取当前选定选项卡的标题NSTabView,您可以执行以下操作:
NSTabView
NSString *title = [[myTabView selectedTabViewItem] label];