小编gar*_*nda的帖子

使用UIDocumentMenuViewController自动布局错误

使用UIDocumentMenuViewController时出现Autolayout错误,初始化DocumentMenu时出现错误,这是我的代码:

let importMenu = UIDocumentMenuViewController(documentTypes: doctypes, inMode: .Import) //Error message here
importMenu.delegate = self
importMenu.popoverPresentationController?.barButtonItem = self.addButon;
self.presentViewController(importMenu, animated: true, completion: nil)
Run Code Online (Sandbox Code Playgroud)

这是错误,与UICollectionViewFlowLayout有关

the behavior of the UICollectionViewFlowLayout is not defined because:
2016-02-17 13:28:44.538 App[35218:1131869] the item width must be less than the width of the UICollectionView minus the section insets left and right values, minus the content insets left and right values.
2016-02-17 13:28:44.538 App[35218:1131869] The relevant UICollectionViewFlowLayout instance is <_UIAlertControllerCollectionViewFlowLayout: 0x7fbcd5d18e90>, and it is attached to <UICollectionView: 0x7fbcd6823000; …
Run Code Online (Sandbox Code Playgroud)

ios swift xcode7

7
推荐指数
0
解决办法
374
查看次数

标签 统计

ios ×1

swift ×1

xcode7 ×1