相关疑难解决方法(0)

像iPad popover的iPhone弹出菜单?

如何在iPhone应用程序中实现这个弹出菜单,就像在ipad中使用popover一样?

替代文字


编辑:这是目前最好的:https://github.com/runway20/PopoverView 在此输入图像描述

iphone objective-c popover ipad uipopovercontroller

34
推荐指数
5
解决办法
4万
查看次数

如何呈现较小尺寸的视图控制器

我想要呈现比屏幕小的尺寸的视图控制器vc2,如何在Swift 3中做到这一点?感谢帮助。这是我的代码:

@IBAction func leftButtonPressed(_ sender: UIButton) {
    let vc2 = self.storyboard?.instantiateViewController(withIdentifier: "Controller2") as! ViewController2
    vc2.modalPresentationStyle = .currentContext

    present(vc2, animated: true, completion: nil)
}
Run Code Online (Sandbox Code Playgroud)

size frame ios presentviewcontroller swift

4
推荐指数
2
解决办法
3212
查看次数