我将 IKImageBrowserView 的内容绑定到对象数组控制器 Person 实现 IKImageBrowserItem 协议:
– imageUID
– imageRepresentationType
– imageRepresentation
在 Person 类中,我希望属性“photo”与属性“imageRepresentation”相同(添加它只是为了符合协议)。
到目前为止,我的解决方案是在 Person init 方法中绑定 2 个属性。但是,我不喜欢重复的属性,因为 Person 是一个模型类。
我应该怎么办 ?(请记住,我想保留名称照片,而不是 imageRepresentation)