iphone开发 两个视图跳转问题(急,求指导!3Q) 错误:accessing unknown 'view ' component of a property 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 问题补充下:-(void)showFirstView{ if(self.firstviewcontroller == nil){ self.firstviewcontroller = [[FirstViewController alloc]initWithNibName:@"FirstView" bundle:nil]; } [self removeAllView]; [self.view insertSubview:self.firstviewcontroller.view atIndex:0]; } -(void)showSecondView{ if(self.secondviewcontroller == nil){ self.secondviewcontroller = [[SecondViewController alloc]initWithNibName:@"SecondView" bundle:nil]; } [self removeAllView]; [self.view insertSubview:self.secondviewcontroller.view atIndex:0]; } -(void)removeAllView{ for(NSInteger i=0;i<[self.view.subviews count];i++){ [[self.view.subviews objectAtIndex:i] removeFromSuperview]; } } 报错 3个错误:accessing unknown 'view ' component of a property求高手解答 急~~~~~~~ 创建viewcontroller成功了,为撒要 [self removeAllView];? [self removeAllView]; 之后self.view 已经被释放了。 http://593134749.blog.163.com/blog/static/69235989201081171816947/我做的就是这个例子,一步一步做下来的,就是错误:accessing unknown 'view ' component of a property[self removeAllView];被我注释了以后,还是一样的错误,求指导,3Q 没太看出有啥问题, 把[self removeAllView];改成:[secondviewcontroller.view removeFromSuperview];试试那几个地方都相应修改下 VM虚拟Mac安装Xcode和iOS SDK出现N种问题,详情见下文 Objective-C 帮忙解决NSTimer导致的崩溃问题 外包活做不完,找创业搭档 求助!发布IPA后在ITUNES中没有图标的解决为法~ 手游消息包多大正好? iOS 模拟器无法显示完整 -------help opencore amr转wav问题 编译问题 关于IOS录音并且发送的问题 我用代码构建试图识别器,为什么无法识别啊.我拖控件可以识别 iphone坐标原点转换 sencha touch的使用
-(void)showFirstView{
if(self.firstviewcontroller == nil){
self.firstviewcontroller = [[FirstViewController alloc]initWithNibName:@"FirstView" bundle:nil];
}
[self removeAllView];
[self.view insertSubview:self.firstviewcontroller.view atIndex:0];
}
-(void)showSecondView{
if(self.secondviewcontroller == nil){
self.secondviewcontroller = [[SecondViewController alloc]initWithNibName:@"SecondView" bundle:nil];
}
[self removeAllView];
[self.view insertSubview:self.secondviewcontroller.view atIndex:0];
}
-(void)removeAllView{
for(NSInteger i=0;i<[self.view.subviews count];i++){
[[self.view.subviews objectAtIndex:i] removeFromSuperview];
}
}
报错 3个错误:accessing unknown 'view ' component of a property求高手解答 急~~~~~~~
我做的就是这个例子,一步一步做下来的,就是
错误:accessing unknown 'view ' component of a property
[self removeAllView];被我注释了以后,还是一样的错误,
求指导,3Q
改成:[secondviewcontroller.view removeFromSuperview];试试那几个地方都相应修改下