我无法使用方法present()
。
错误是:
“ ProductByBrandCollectiionView”类型的值没有成员“出席”
func collectionView(_ collectionView: UICollectionView,didSelectItemAt indexPath: IndexPath) {
let alert = UIAlertController(title: "Alert",message: "You select\(NameArray[indexPath.row])",preferredStyle: .alert)
let action = UIAlertaction(title: "Ok",style: .default,handler: nil)
alert.addaction(action)
print("You select \(NameArray[indexPath.row])")
self.present(alert,animated: true,completion: nil)
}