[MonoTouch] Webservice no internet connection
Robert Jordan
robertj at gmx.net
Fri Oct 28 08:22:59 EDT 2011
On 28.10.2011 13:01, simarx wrote:
>
> Nic Wise wrote:
>>
>> It should throw an exception. Or it will time out.
>>
>> Do the call in another thread, and then have yet another thread
>> watching it if its a problem. You should not be doing the webservice
>> call on the UI thread anyway...
>
> Doing a web-service call onthe UI thread should be ok if you intend the app
> to block during the call? i.e. where the user is carrying out an action that
> requires it to complete before they move on?
No, it's not okay. You should deactivate the UI, e.g. by showing an
activity indicator on top of an alert view, and perform the WS call
from another thread.
Robert
More information about the MonoTouch
mailing list