Xcode:如果您的项目不是视图控制器项目,您可以更改视图吗?
我想改变观点,例如;
[example presentModalViewController:example2 animated:YES];
但我可以在单一视图应用程序中执行此操作吗?可能看起来是一个愚蠢的问题,但是有什么方法或类似的东西吗?
谢谢,
詹姆斯
I want to change views e.g.;
[example presentModalViewController:example2 animated:YES];
But can I do this in a single view application? May seem a silly question, but is there any way or anything similar?
Thanks,
James
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
添加 UIViewController 的新子类并使用:
targetView = [[<>; alloc] initWithNibName:nil 捆绑包:nil];
[自我呈现ModalViewController:targetView动画:(是)];
[目标视图发布];
在标题中:添加@class <>并处理变量声明 + getters/setters;
这对你有用吗?我不知道有“单视图应用程序”之类的东西......
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"...