2011/5/15 Jesús Bosch Ayguadé <[email protected]> > Hello, > > This is what I do: > > 1- In the "FinishedLaunching" event, I do a request for a remote XML using > a WebClient object. > 2- When the Webclient event DownloadStringCompleted is raised, (after the > finished launching event, because it is asyncronous), I try to bind the > table view > > Well, nothing happens (the items do not appear in the table view). If I try > to "bind" the table view inside the "finishedlaunching" event manually with > the *same data* (not the remote one), it works!! I think that must be > because the downloadstringcompleted event should be in a thread different > than the UI one, but I'm new in mono touch and I'm not sure. Any advise? > > Thanks! :) >
Hi Jesus, this might help: http://wiki.monotouch.net/HowTo/WebServices/Using_a_Web_Service 1. InvokeOnMainThread (delegate { 2. // data bind and reload data 3. }); John
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
