Start a new topic
Answered

How I can add photo attribute to people collection ?

Hello all, i am facing problem while adding photo in kinvey. I want to add photo in people collection when user create account. Getting below error when i am trying to store photo in payslipview json serialization not supported for NSConcreteMutableData . Check out below code because i am stuck here from long time and new to programming.


 

[people setValue:imageData forAttribute:@"photo"];
KCSLinkedAppdataStore* store = [KCSLinkedAppdataStore storeWithCollection:[KCSCollection peopleCollection] options:nil];
[store saveObject:people withCompletionBlock:^(NSArray *objectsOrNil, NSError *errorOrNil) {
    if (errorOrNil ==  nil) {
        //was successful!
    } 
} withProgressBlock:nil];

 



Best Answer

Hi Amruta,

Current version of iOS SDK is supporting Swift language only. The Objective C SDK has reached End of Support. It is better to migrate your app to the new version of the iOS SDK v4.1.1 which can be downloaded at the following URL.
https://devcenter.kinvey.com/ios/downloads


Thanks,

Pranav

1 Comment

Answer

Hi Amruta,

Current version of iOS SDK is supporting Swift language only. The Objective C SDK has reached End of Support. It is better to migrate your app to the new version of the iOS SDK v4.1.1 which can be downloaded at the following URL.
https://devcenter.kinvey.com/ios/downloads


Thanks,

Pranav

Login or Signup to post a comment