国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計 > 正文

使用UIAlertControllerStyleActionSheet IPAD崩潰 swift

2019-11-07 23:58:23
字體:
供稿:網(wǎng)友

 let alert = UIAlertController(title:nil, message: nil, PReferredStyle: .ActionSheet)        let action = UIAlertAction(title:"保存到相冊".localized(), style: .Default) { (action)in            self.loadImageFinshed(self.codeImageView.image!)        }        let action1 = UIAlertAction(title:"識別圖中二維碼".localized(), style: .Default) { (action)in            self.code(self.codeImageView.image!)        }        let action2 = UIAlertAction(title:"取消".localized(), style: .Cancel, handler:nil)        alert.addAction(action)        alert.addAction(action1)        alert.addAction(action2)//適配ipad需要加這兩句        alert.popoverPresentationController?.sourceView =self.view        alert.popoverPresentationController?.sourceRect = CGRect(origin:self.view.center, size: CGSize(width:1, height: 1))        self.presentViewController(alert, animated:true, completion: nil)


發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 杭锦后旗| 唐河县| 丹东市| 昌平区| 湘潭市| 蕉岭县| 理塘县| 吴川市| 尼木县| 宜都市| 伊川县| 同心县| 石门县| 和静县| 东丽区| 镇安县| 安达市| 克什克腾旗| 个旧市| 江达县| 隆回县| 滨海县| 钟山县| 乳源| 凤阳县| 昂仁县| 通州市| 贺州市| 岑巩县| 油尖旺区| 沭阳县| 辽阳市| 广南县| 会同县| 汉寿县| 泽普县| 辽宁省| 临沧市| 泽州县| 秭归县| 广宁县|