How do I store a UInt8 value in CloudKit?

If I want to store a value of type UInt8 in CloudKit, what field type would I use and how would I convert the UInt8 value to that field type?


What methods should I use with the CKRecord object? setValue(_:_:) and value(_:), or setObject(_:_:) and object(_:)?

Replies

Try

NSNumber *anNSNumberObject=[NSNumber numberWithInt:myUInt8Number];


Then save "anNSNumberObject" as an NSNumber.