hi, i strongly feel it is a syntax problem for swift. I have followed
all the steps in the doc. not sure what wrong i am doing. any help would
be appreciated
Best Answer
P
Pranav J
said
almost 4 years ago
Pratap,
What is the version of the SDK that you are using?
I am able to create custom user in my environment using following code. Make sure you have included object mapper which is used for mapping of the attributes using 'import ObjectMapper':
import UIKit
import Kinvey
import ObjectMapper
class CustomUser: User {
var address: String?
var first_name: String?
var last_name: String?
override func mapping(map: Map) {
super.mapping(map: map)
address <- map["address"]
first_name <- map["first_name"]
last_name <- map["last_name"]
}
}
Pranav, including 'object mapper' solved the issue. thank you again for all your help !
P
Pratap Bhosle
said
almost 4 years ago
Pranav, sorry for late reply. i am using version 3.3.6. I haven't tried your code yet as I am travelling. I will try it asap and reply.
P
Pranav J
said
almost 4 years ago
Answer
Pratap,
What is the version of the SDK that you are using?
I am able to create custom user in my environment using following code. Make sure you have included object mapper which is used for mapping of the attributes using 'import ObjectMapper':
import UIKit
import Kinvey
import ObjectMapper
class CustomUser: User {
var address: String?
var first_name: String?
var last_name: String?
override func mapping(map: Map) {
super.mapping(map: map)
address <- map["address"]
first_name <- map["first_name"]
last_name <- map["last_name"]
}
}
Pratap Bhosle
hi, i strongly feel it is a syntax problem for swift. I have followed all the steps in the doc. not sure what wrong i am doing. any help would be appreciated
What is the version of the SDK that you are using?
I am able to create custom user in my environment using following code. Make sure you have included object mapper which is used for mapping of the attributes using 'import ObjectMapper':
If above information doesn't help, then please take a look at our iOS sample app http://devcenter.kinvey.com/ios/samples/ios-starter#.
Thanks,
Pranav
Kinvey
- Oldest First
- Popular
- Newest First
Sorted by Newest FirstPranav J
Glad it is working for you!
Also we have released new iOS SDK version 3.3.8. Please upgrade your SDK at the following link http://devcenter.kinvey.com/ios/downloads#.
Thanks,
Pranav
Kinvey
1 person likes this
Pratap Bhosle
Pranav, including 'object mapper' solved the issue. thank you again for all your help !
Pratap Bhosle
Pranav, sorry for late reply. i am using version 3.3.6. I haven't tried your code yet as I am travelling. I will try it asap and reply.
Pranav J
What is the version of the SDK that you are using?
I am able to create custom user in my environment using following code. Make sure you have included object mapper which is used for mapping of the attributes using 'import ObjectMapper':
If above information doesn't help, then please take a look at our iOS sample app http://devcenter.kinvey.com/ios/samples/ios-starter#.
Thanks,
Pranav
Kinvey
Pranav J
I have started looking into it. Will get back to you asap.
Thanks,
Pranav
Kinvey
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics