我一直在寻找市场上不同的iPad应用程序。例如,Yelp具有以下屏幕:

基本上,此灯箱(登录)从底部弹出,并“悬停”在背景的UISplitViewController上方。

如何创建“灯箱”并对其进行动画处理。我敢肯定,这样做有一种非怪异的方法,只是在我的扩展知识范围内找不到任何东西。

最佳答案

UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:yourViewController];
navController.modalPresentationStyle = UIModalPresentationFormSheet;
[self.navigationController presentModalViewController:navController animated:YES];
navController.view.superview.bounds = CGRectMake(0, 0, 400, 500);

关于ios - iOS:在iPad上创建NavigationController灯箱,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11476414/

10-13 06:35