开发者

Update Label text from XML

I have an XML will is parsed and then fed to a bunch of Labels.

I am trying to add a live element so that the labels refresh automatically from the XML.

From what I've read this is possible using a tableView and [tableView reloadData] but the design dictates the use of labels. At the moment the labels only get updated on restarting the app, which is not ideal.

Using ViewWi开发者_运维知识库llAppear is one option, but want to stick to using lables.


You'll need to have some object that manages the parsing of your XML, you'll probably want to give this object a delegate, and create a delegate method like xmlDataDidUpdate: (id)parser, when the XML parsing has been completed you can then notify your delegate and update your view accordingly.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜