int16 error on model swift3


In swift 3 int16 is not able to be used in the model.Instead of that, you can use the NSNumber datatype in that to resolve the issue.

If you used the int16 vales in core data models they will give some run time exceptions.So better you must have to try with the NSNumber. NSNumber will accept all the number values.So it's better to compare with int16.  

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift