Wednesday, 25 March 2015

Restkit error handling/mapping --Swift


I found two post online, but they all not full right in case of using swift:

http://stackoverflow.com/questions/9841203/restkit-json-error-response-msg-from-server

http://benroesch.com/2013/05/21/mapping-rails-errors-in-a-restkit-based-ios-app

Because of mixing swift with obj-c (restkit is implemented by obj-c for now)

we can't really get the mapped error object.

NSError.userinfo is an untouchble dictionary!!!!!


No comments:

Post a comment