I’m unsingf RestKit in my iPad Project pulling some JSON Data from Server. The iOS app needs to authenticate via Basic HTTP Authentication.
If i enter wrong credentials, i can see on the console (Simulator):
W restkit.network:RKResponse.m:157 Failed authentication challenge after 1 failures
How can i catch this situation? I found nothing in RestKit documentation (and i’m sure there must be something).
Did you tried to implement the appropriate error handler in you
RKObjectLoaderDelegate?eg.
You should get an error with
Error Domain=NSURLErrorDomain Code=-1012or similar.