سؤال

Is it possible to set different maximum number of objects in a two many relationship in core data? I was thinking it might be possible with the NSRelationshipDescription -setMaxCount: method, but I can't figure out where to call this. Would I call it in a custom +initialization method?

هل كانت مفيدة؟

المحلول

You can use a setting to set the maximum number of objects. Use the core data inspector to set your property on your relationship.

enter image description here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top