How to reload a rootelement from a callback
I have created an app (IOS) based on the Tweetstation project. It's a
simple url-shortening app: I send a long-URL to my server via a POST. I
get an xml-stream back with a shortened url. I save the shortened url and
some metadata in a local DB (SQLite).
And, I have a navigationcontroller called YourURLS that does a select *
from the local database and populates a list based on Monotouch dialog
(simple stringelements).
And I have a main.cs where the post to the server and the callback takes
place.
My problem is that when I get the XML back from the server, and insert in
the local DB, I want the list with URLs to be refreshed so the latest post
is shown. And right now it don't. If I do a requestrefresh it does. But I
want it to be done automatically. Pretty similar to when you post a new
tweet in Twitter...
Any ideas on how to accomplish this? /Robert
No comments:
Post a Comment