Adding subview, gets delayed?
Posted
by user289510
on Stack Overflow
See other posts from Stack Overflow
or by user289510
Published on 2010-03-09T09:48:57Z
Indexed on
2010/03/09
9:51 UTC
Read the original article
Hit count: 303
iphone
|iphone-sdk
|iphone-sdk-3.0
|uiactivityindicatorview
|uinavigationcontroller
Hi, i didn't really know how to title this question, but here's a thing that really kills me: In my app i have a UITableView, UISegmentedControl and UINavigationBar. Once UISegmentedControl gets one of its segments selected i want to show a UIActivityIndicatorView on the UINavigationBar and then parse an xml file and present the results in a table. Everything works almost as i want it to, except one thing, the activity indicator view gets added to the uinavigationbar after the parser finishes, even though the method showLoading that adds UIIndicatorView to UINavigationBar gets before parser is initialised. Can anyone explain it? is there something i might be missing? maybe the ui needs to get redrawn? thanks peter
© Stack Overflow or respective owner