I want to change views e.g.;
[example presentModalViewController:example2 animated:YES];
But can 开发者_JAVA技巧I do this in a single view application? May seem a silly question, but is there any way or anything similar?
Thanks,
James
Add a new subclass of UIViewController and use:
targetView = [[<> alloc] initWithNibName:nil bundle:nil]; [self presentModalViewController:targetView animated:(YES)];
[targetView release];
In the header: add @class <> and take care of the variable declaration + getters/setters;
Will this work for you? I didn't know there was something like "single view application"...
精彩评论