RestKit: Values to BOOL

后端 未结 1 493
既然无缘
既然无缘 2021-01-15 18:07

I have an NS_ENUM that holds the status of a checklist. The two properties are Pending and Completed.

typedef NS_ENUM (N

相关标签:
1条回答
  • 2021-01-15 18:16

    You can't explicitly convert, since BOOL isn't a primitive type. Check if the desired output is a string "false"/"true" instead of actualy values of t/f

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