ios - Retrieve data from Parse and fill textfields -


i've used parse set objects 3 text fields in view controller so:

pfobject *profile = [pfobject objectwithclassname:@"profile"]; [profile setobject:_setartistname.text forkey:@"artistname"]; [profile setobject:_setgenre.text forkey:@"genre"]; [profile setobject:_setdescription.text forkey:@"description"];

after hitting 'submit' button, parse sets objects. i'd know how retrieve these objects in order fill same text fields, when user goes view controller, text fields filled in information entered earlier.

according official doc:

if have objectid, can retrieve whole pfobject using pfquery. replacing "xwmyz4yegz" own objectid.

pfquery *query = [pfquery querywithclassname:@"profile"]; [query getobjectinbackgroundwithid:@"xwmyz4yegz" block:^(pfobject *userprofile, nserror *error) {     // returned pfobject.     nslog(@"%@", userprofile); }]; 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -