小编HH8*_*887的帖子

使用swift 3.0编译的模块无法在Swift 3.0.1中导入

我将Xcode升级到8.1 GM,现在我收到了SwiftyJSON的以下错误.其他导入的框架似乎有效.有没有办法强制这个在Swift 3中工作,直到SwiftyJSON升级他们的框架?我使用Carthage导入/更新框架.我也尝试改变Use Legacy Swift language versionOn和Off无济于事.

使用Swift 3.0编译的模块无法在Swift 3.0.1中导入:Modules/SwiftyJSON.swiftmodule/arm64.swiftmodule

swift swifty-json

87
推荐指数
6
解决办法
2万
查看次数

强制触摸UI​​TableViewCell内的UICollectionView

我有一个带有Tableview的viewController,多个TableViewCells和每个TableViewCell,一个带有多个UICollectionViewItems的UICollectionView.每个collectionView项都有一个标签和图像视图.我正在努力让3d触摸工作,以便用户通过强制触摸tableCell的不包含集合视图的区域来窥视和弹出,预览并弹出到一个视图控制器然后能够执行与collectionView中的一个图像相同但预览并弹出到另一个视图控制器中.我有第一个场景正常工作,当开始强制触摸和"偷看"时,tableCell在屏幕上保持清晰.我一直坚持让它在集合视图中工作,无论我做什么,只有一个图像视图框架在第一个tableview行上保持清晰,无论我实际按下哪一行.代码如下:

    func previewingContext(_ previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController? {

    //get the tableviewCell
    if let tableCellPath = tableView.indexPathForRow(at: location) {
        print("tableCellPath=", tableCellPath)
        if let tableCell = tableView.cellForRow(at: tableCellPath) as? VenueMainTableViewCell {
            //user tapped on a beer in the collectionview
            if let collectionView = tableCell.collectionView {
                let collectionPoint = collectionView.convert(location, from: tableView)
                if let cvPath = collectionView.indexPathForItem(at: collectionPoint) {
                    let collectionViewCell = collectionView.cellForItem(at: cvPath) as? VenueMainCollectionViewCell

                    let cvFrame = collectionViewCell?.itemLabelImageView.frame

                    let bc = storyboard?.instantiateViewController(withIdentifier: "itemDetail") as! ItemDetailViewController
                    let ven = …
Run Code Online (Sandbox Code Playgroud)

uitableview ios uicollectionview swift

6
推荐指数
1
解决办法
1670
查看次数

标签 统计

swift ×2

ios ×1

swifty-json ×1

uicollectionview ×1

uitableview ×1