are needsDisplayForKey/actionForKey overrides working correctly?

后端 未结 1 1683
我在风中等你
我在风中等你 2021-02-06 05:29

I\'m trying to convert some code that works in Objective-C to Swift. The problem I\'m running into is that needsDisplayForKey/actionForKey aren\'t getting called the same way.

1条回答
  •  野的像风
    2021-02-06 06:08

    I got this working in Swift by using @NSManaged attribute in front of the variable declaration (where you would use the the @dynamic attribute in Objective-C)

    0 讨论(0)
提交回复
热议问题