【发布时间】:2021-08-13 13:38:11
【问题描述】:
我正在尝试使用 segue 从一个 VC(其中包含已实现的 Xib 文件)转到另一个 VC。
但是,我收到了一个错误
在范围内找不到“performSegue”
这是我的 xib 文件的类:
class PetNameInfoCollectionViewCell: UICollectionViewCell {
@IBAction func takeAPhoto(_ sender: UIButton) {
performSegue(withIdentifier: "UIImagePickerSegue", sender: nil)
}
}
【问题讨论】:
标签: storyboard segue uicollectionviewcell xib swift5