how to use the progress bar in the iphone app

后端 未结 5 1913
情歌与酒
情歌与酒 2020-12-07 21:31

In my iPhone app I am downloading some data from an FTP server. To show the action I am using UIActivityIndicator. If I put UIProgressView there in

5条回答
  •  -上瘾入骨i
    2020-12-07 21:52

    It is quite simple. You just need to set appropriate value of property progress of UIProgressView.

    In delegate of NSURLConnection you should receive the amount of data you are waiting to download and update the progress during downloading. Progress is represented by a floating-point value between 0.0 and 1.0, inclusive, where 1.0 indicates the completion of the task.

提交回复
热议问题