我尝试添加UIView
:UIViewController
AppDelegate *md = (AppDelegate*)[[UIApplication sharedApplication] delegate];
UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 150, 44)];
[view setBackgroundColor:[UIColor yellowColor]];
[md.tab.view addSubview:view];
我注意到 UIView 不是从以下位置开始的:
我在 MainWindow.Xib 上创建 TabBarController