[someView addSubView:sbView]
那么在被添加到父视图someView之前,如果sbView已经被otherView加载了,那么上面
的代码会先讲sbView从otherView remove掉,在被加载到someView。
所以一个view是不可能同时被2个以上的view加载做子视图的。
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"xx"] forBarMetrics:UIBarMetricsDefault]UINavigationController *nav =[[UINavigationController alloc]initWithRootViewController:self]//隐藏导航栏你看看是...欢迎分享,转载请注明来源:内存溢出
评论列表(0条)