I am getting following error when i tried to make a thread for an image uploading and parsing..

> 
> **error**
> 
> 
> Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
> 
> 
> 

I have tested this method with other simple statements but when i tried to access content from web this error arises...

Can any one tell me how to solve this problem