开发者

isql wait for end of query on iphone

i'm using isql sdk to make Microsoft Sql 2008 query through iphone, everything works fine but I always need to click two button to get the answer of my query. I press the button 'submit' then i can press the button 'next page' and the result will show on the next page but if i put my query in the next page button, the app switch to the next page but since the query isn't finished my text view is empty, so is there a way to make the app wait for the end of a query, it would be great if the entire app could paus开发者_如何转开发e and an activity indicator shows up until the query finish


To make my app wait for the query to finish I use something like SVProgressHUD https://github.com/samvermette/SVProgressHUD

Basically when I execute the query I display the hud (which halts user interaction)

Then when the query finishes I deal with the data returned (change views, update textfields, etc.) then dismiss the HUD.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜