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.
我正在为我的应用程序编写教程,为此我需要 TabBar 按钮的位置。由于我正在为 iPad 和 iPhone 编写它并且希望支持任何未来版本的屏幕,我想知道如何获得按钮的底层视图?
谢谢
解决了!
int d; NSArray* g = [myTabBarController.tabBar subviews]; for(d=0;d<=3;d++) NSLog(@"These are my subviews %@",[g objectAtIndex:d]);