EXC_BAD_ACCESS error when trying to change Bool property

后端 未结 4 2041
甜味超标
甜味超标 2020-12-17 18:05

I\'m trying to change a Bool property and am receiving an EXC_BAD_ACCESS error.

I\'m using XCode 6 and Swift.

The note property saves fine but t

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-17 18:58

    I'm just considering filing a bug as I have the same issue but if your really want to use Bool still then a workaround is to use this method:

    setValue(true, forKey: "completed")
    

提交回复
热议问题