i create two nib files, and when i show the first nib, it show me the first view,and i click a button, i want to the first view change to the second view, but the nib no need change:
this is ok.
but follow:
in .h file
in .m file
this is no show the view;
what happen?
thank you.
Code:
UIViewController *c = [[UIViewcontroller alloc] init];
[c.view setFrame:f];
[self.view addSubview:c.view]
but follow:
in .h file
Code:
UIView *v
@property(nonatomic,retail) UIView *v;
Code:
@synthesize v;
UIViewController *c = [[UIViewcontroller alloc] init];
[c.view setFrame:f];
[self setV:v.view];
[self.view addSubview:v];
what happen?
thank you.
Last edited by a moderator: