开发者

How show that label content is loading?

开发者 https://www.devze.com 2023-02-26 02:06 出处:网络
for my app I need to load some content f开发者_运维知识库rom my webservice. I want to display it within a simple UILabel. This works fine so far.

for my app I need to load some content f开发者_运维知识库rom my webservice. I want to display it within a simple UILabel. This works fine so far.

But since the request is asynchronous the process might take some time.

Now I want to indicate the loading process with a little image like you see in the picture.

Is that a buildin-feature in xcode4 somewhere in the interface-builder? Is it possible to assign an image to a UILabel and how do I do that?

How show that label content is loading?


There is the UIActivityIndicatorView which can be told to start and stop animating. You can eve say to hide when it stops animating so you can bind this view to the logic of showing your label.

0

精彩评论

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