如何更改 PFObject 中字段的数据类型?

How to change Datatype of a filed in PFObject?

Error: invalid type for key activeSurvey, expected string, but got *Survey (Code: 111, Version: 1.6.0)

编辑:

self.selectedStoreObject[@"activeSurvey"]=survey //Survey is a pfobject with class name Survey
//self.selectedStoreObject is also a pfobject with class name Store
[self.selectedStoreObject saveInBackground];

您不能更改 PFObject 中 field/column 的类型。

您必须使用 parse.com 上的仪表板删除该列并使用正确的类型重新添加它。

如果您在该列中有任何现有数据,那么这些数据当然会丢失。