Error: accessing unknown 'view' component of a property
Reply:
Under supplementary question:
- (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];
}
}
Error 3 Error: accessing unknown 'view' component of a property
Seek expert answers to urgent ~ ~ ~ ~ ~ ~ ~
Reply:
Creating viewcontroller success for Caesar to [self removeAllView];?
Reply:
Reply:
[Self removeAllView]; After self.view has been released.
Reply:
http://593134749.blog.163.com/blog/static/69235989201081171816947/
I have to do is this example, step by step down that
Error: accessing unknown 'view' component of a property
[Self removeAllView]; are my notes later, still the same error,
Seeking guidance, 3Q
Reply:
Not too much to see what's the problem, the [self removeAllView];
Changed: [secondviewcontroller.view removeFromSuperview]; Try
Few places are amended accordingly under
No comments:
Post a Comment