开发者

Xcode: Can you change views if your project isn't a View Controller project?

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"...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜