iOS to Parse.com - SaveInBackground Object ID is null -
i struggling find why getting null value when using saveinbackgroundwithblock parse.com. sure missing something, have tried both if (!error) , if(succeeded) same result object created eventid (the objectid) null... suggestions?
thanks in advance!
[event saveinbackgroundwithblock:^(bool succeeded, nserror *error) { if (!error) { [commonhelper hidebusyview]; eventobj *obj = [[eventobj alloc] init]; obj.eventid = event.objectid; obj.eventname = strnameevent; obj.eventdatetime = self.dateevent; obj.eventaddress = straddress; nslog(@"eventid: %@",self.eventobj.eventid); previewinvite *invitepreview =[[previewinvite alloc] init]; invitepreview.eventobj = self.eventobj; [self.navigationcontroller pushviewcontroller:invitepreview animated:yes]; } else { nsstring *errorstring = [error userinfo][@"error"]; [commonhelper showalert:errorstring]; [commonhelper hidebusyview]; } }]
Comments
Post a Comment