开发者

editedObject undeclared

开发者 https://www.devze.com 2023-02-22 18:58 出处:网络
In my code I have a pretty simple [editedObject setValue:[NSData dataWithContentsOfURL:url] forKey:editedFieldKey];

In my code I have a pretty simple

[editedObject setValue:[NSData dataWithContentsOfURL:url] forKey:editedFieldKey];       

however my compiler is telling me "editedObject undeclared" as well as "editedFieldKey". This looks like I didn't #import an API but I don't know what I need to impor开发者_Go百科t.


Not necessarily.

Doesn't have anything to do with #import unless those properties belong to another class. In which case the properties would still have to be defined.

Check where you've defined

editedObject
editedFieldKey

In your code.

You should have something in .h or .m that declares them as objects (or for editedFieldKey, a constant)

"#define editedFieldKey @"somekey"
NSString *editedObject;

or something close to that, editedObject could be any object.

0

精彩评论

暂无评论...
验证码 换一张
取 消