如何在iPad中的另一个视图上加载视图 [英] How do you load a view on top of another view in the iPad

查看:109
本文介绍了如何在iPad中的另一个视图上加载视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当它要求您设置博客时,如何在iPad中的另一个视图上加载视图,就像在wordpress应用程序中一样。你能展示或发布一些示例代码吗?我有一个NSUSerdefaults设置,所以它会在第一次启动时显示。我希望这个视图看起来像这样的 http://uplr.me/files/p45064.png

How do you load a view on top of another view in the iPad like in the wordpress app when it asks you to setup your blog. Can you show or post me some sample code. I have an NSUSerdefaults setup so it will display this on the first launch. I would like this view to look like this http://uplr.me/files/p45064.png

看看它是如何有阴影的,后面的视图变暗了。多数民众赞成我想做的事。

See how it has the shaddows and the view is darkened in the back. Thats what I am trying to do.

推荐答案

我明白了

AddViewController* firstLaunchController = [[AddViewController alloc] initWithNibName:nil bundle:nil];
UINavigationController *modalNavigationController = [[UINavigationController alloc] initWithRootViewController:firstLaunchController];
modalNavigationController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
modalNavigationController.modalPresentationStyle = UIModalPresentationFormSheet;
[detailViewController presentModalViewController:modalNavigationController animated:YES];
[firstLaunchController release];

非常简单

谢谢大家

这篇关于如何在iPad中的另一个视图上加载视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆