-1
我有以下代码,并没有显示uiview,我已经放置了一个断点&看到视图不是零和框架设置为给定大小 - 为什么视图是没有显示在我的uiviewcontroller?添加子视图不显示我的用户界面
@property (nonatomic,strong) LoadingView *loadingView;
self.loadingView = [[[NSBundle mainBundle] loadNibNamed:@"LoadingView" owner:self options:nil] objectAtIndex:0];
self.loadingView.frame = CGRectMake(110,170,100,100);
[self.view addSubview:self.loadingView];
你在哪里添加视图?你确定self.view已经被加载了吗? – tadasz
@tadasz在我的方法之一 –