覆盖面板iPad

时间:2012-10-13 10:58:18

标签: ios view panel

我正在尝试创建一个可以在我的视图上滑动的面板,以显示更多与ipad上的应用商店非常相似的内容:

http://0.tqn.com/d/ipad/1/0/g/5/-/-/ipad-app-like.png

是否有类似这样的课程,或者我是否必须从头创建它?

提前致谢, 本

2 个答案:

答案 0 :(得分:2)

我发现了如何做到这一点,请使用:

UIViewController *sampleView = [[UIViewController alloc]init];
[sampleView setModalPresentationStyle:UIModalPresentationFormSheet];
[self presentViewController:sampleView animated:YES completion:NULL];

如果您想在应用程序商店中使用方角,可以使用:

self.view.layer.cornerRadius = 0;

在viewWillAppear:(BOOL)您使用的UIViewController的动画方法中。您需要导入QuartzCore / QuartzCore.h。

答案 1 :(得分:0)

Uicontainerview就是我要用的。你可以在'U'下找到这个控件。

相关问题