作者:mobiledu2502861997 | 来源:互联网 | 2023-09-25 12:38
IwanttocheckifmysenderisanXyz-Object我想检查我的发件人是否是Xyz-ObjectoverridefuncprepareForSegue(
I want to check if my sender is an Xyz-Object
我想检查我的发件人是否是Xyz-Object
override func prepareForSegue(segue: UIStoryboardSegue!, sender: AnyObject!) {
let senderIsBOnusProduct= sender is Xyz
but I get following error:
但我得到以下错误:
Could not find a user-defined conversion from type 'Int1' to type 'Bool'
找不到从“Int1”类型到“Bool”类型的用户定义转换
3 个解决方案