ios - 像 UIPopoverController 这样的自定义 UIView

标签 ios objective-c iphone ios8.1

想了解 UIPopoverController 风格的 UIView 是如何创建的。下面是在 iPhone(苹果设计奖获得者)上运行的 Storehouse iOS 应用程序的图像,你可以看到此外,该 View 看起来像 UIPopoverController,非常感谢任何帮助。

enter image description here

最佳答案

您可以处理自己的自定义 View ,查看此 How to Place custom view in IOS over another view

你可以用这个

- (IBAction)ContinueToPayment:(id)sender {

    PayByVC *Newpage = [[PayByVC alloc] initWithNibName:@"PayByVC" bundle:nil];
    Newpage.checkOutInfoDict=checkOutDict;
    Newpage.modalPresentationStyle   = UIModalPresentationOverCurrentContext;
    Newpage.modalTransitionStyle     = UIModalTransitionStyleCrossDissolve;
    Newpage.view.backgroundColor     = [[UIColor blackColor] colorWithAlphaComponent:.4];
    Newpage.delegate = self;
    [self presentViewController:Newpage animated:YES completion:nil];


}

关于ios - 像 UIPopoverController 这样的自定义 UIView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30296318/

相关文章:

ios - MKPolygon 面积计算 Swift

iphone - 从类方法调用 popViewController

iphone - 如何在 Xcode 中将数据传递到另一个 Storyboard?

iphone - MPMoviePlayerViewController 使用 setDefaultCredential 保护来自雅虎托管站点的 URL

ios - 将 UIButtons 分组为一个层并水平居中

ios - 适用于 iOS 的 Aviary SDK : Present view controller on top of AFPhotoEditorController does not work well

ios - 如何将 int array[] 声明为 appDelegate 中的属性

iphone - iOS - 如何通过点击按钮移动到不同的页面

ios - 改变 UIVisualEffectView 颜色超越光/暗?

iphone - iOS Google Drive sdk 集成和权限