Attempt to insert non-property value Objective C

后端 未结 2 624
失恋的感觉
失恋的感觉 2021-01-30 23:43

Hi l am trying to create a fourates lists from an restaurants Object, my application has a list of different restaurants, l want the ability for users to add favourate restauran

2条回答
  •  野的像风
    2021-01-31 00:00

    You can only store property list types (array, data, string, number, date, dictionary) or urls in NSUserDefaults. You'll need to convert your model object to those.

提交回复
热议问题