Saving user causes object not found error

前端 未结 3 2168
说谎
说谎 2020-12-12 06:08

Saving a user causes Error: object not found for update (Code: 101, Version: 1.2.19)

   [PFGeoPoint geoPointForCurrentLocationInBackground:^(PFGeoPoint *geoP         


        
3条回答
  •  囚心锁ツ
    2020-12-12 06:42

    Try this, i'm using this, when i need to save objects for the current user. Hope it will help.

            PFUser *user = [PFUser currentUser];
            [user setObject:geoPoint forKey:@"location"];
    
            [user saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
                if (error){
                    NSLog(@"Error %@ %@", error, [error userInfo]);
                }
            }];
    

提交回复
热议问题