I am trying to develope an iOS application with ABBYY OCR SDK sample code. I changed OCRDemoClient.m file with my applicationID and application password recieved by email. Because I want this application run on version 7, so I fixed some depreciated methods with latest version methods. Now, the sample code can be built successful in Xcode stimulator and iPhone devices. But when I use it to recognize the sample picture, it causes error :Expected status code in (200-299), got 401. It seems that this error caused by unauthorized client request over http request. But I am new to object C, I can't find how to fix this problem. Is there anyone has the same problem? Any suggestions are more than welcome!