Makes sense. Thanks so much guys for the quick replies.

Dave


On Apr 10, 2012, at 6:51 PM, Curtis Bailey <[email protected]> wrote:

I think right where you have it now is best. If you’re not updating the UI
it’s not required so I wouldn’t put it in your service code.

Just make sure that if you access/update the UI from your service callback
you must call InvokeOnMainThread.



Cheers,

Curtis



*From:* [email protected] [mailto:
[email protected]] *On Behalf Of *David Ortinau
*Sent:* Wednesday, 11 April 2012 11:41 a.m.
*To:* [email protected]
*Subject:* Re: [MonoTouch] DialogViewController displays blank until touched



Ok, so invoking the callback on the main thread has fixed this issue.
https://gist.github.com/2355654



Is this perhaps something better done in the service, or is it best
practice to do it in the view like this?





On Apr 10, 2012, at 6:34 PM, davidortinau wrote:



Gist of the view and the service being called (uses RestSharp):
https://gist.github.com/2355621



I'm not using ViewWillAppear.





On Apr 10, 2012, at 6:30 PM, Craig Dunn [via MonoTouch] wrote:



>>This also will happen if you navigate to a different tab and back.
any chance you can post some code (gist.github.com)... in particular,
what's in your ViewWillAppear method?





On Wed, Apr 11, 2012 at 8:48 AM, davidortinau <<a href="
x-msg://62/user/SendEmail.jtp?type=node&amp;node=4547356&amp;i=0"
target="_top" rel="nofollow" link="external">[hidden email]> wrote:

I'm having weirdness using DVC and was hoping someone might have seen this
before. My searching here and on Stack Overflow haven't turned up any
similar reports.

I have an async service that returns a list which I then use Linq to add
Elements to the Root (see link below).

The view loads and displays an empty table...until you touch it at which
point it displays the expected data. This also will happen if you navigate
to a different tab and back. I've tried RefreshData() and set breakpoints to
make sure methods aren't called twice unexpectedly.

I also tried this with custom UITableViewCell and a custom
UITableViewSource. Same result.

Maybe it's my machine b/c I also have Unity installed with an older copy of
MonoDevelop?

If anyone has any idea what might be causing this, I've opened a SO
question. Your input is MUCH appreciated.

http://stackoverflow.com/questions/10093442/monotouch-dialogviewcontroller-is-empty-until-touched



--
View this message in context:
http://monotouch.2284126.n4.nabble.com/DialogViewController-displays-blank-until-touched-tp4547277p4547277.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
<a href="x-msg://62/user/SendEmail.jtp?type=node&amp;node=4547356&amp;i=1"
target="_top" rel="nofollow" link="external">[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch




_______________________________________________
MonoTouch mailing list
<a href="x-msg://62/user/SendEmail.jtp?type=node&amp;node=4547356&amp;i=2"
target="_top" rel="nofollow" link="external">[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch

------------------------------

*If you reply to this email, your message will be added to the discussion
below:*

http://monotouch.2284126.n4.nabble.com/DialogViewController-displays-blank-until-touched-tp4547277p4547356.html

To unsubscribe from DialogViewController displays blank until touched, click
here <x-msg://66/>.
NAML<http://monotouch.2284126.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




------------------------------

View this message in context: Re: DialogViewController displays blank until
touched<http://monotouch.2284126.n4.nabble.com/DialogViewController-displays-blank-until-touched-tp4547277p4547366.html>
Sent from the MonoTouch mailing list
archive<http://monotouch.2284126.n4.nabble.com/>at
Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to