问题标签 [uiprogressview]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
587 浏览

ios - 自定义 ProgressView

我正在尝试制作一个似乎是进度视图自定义的控件。这是我应该做的。这是一个进度条,可以用作倒数计时器。从 30 秒开始,该条为绿色。随着时间的推移,该栏会缩短。当时间为 20 秒时,条形变为黄色。在 10 秒时,条为红色。

希望您能给我一些想法,如何使用进度视图自定义它?或者是另一个控件?

0 投票
2 回答
927 浏览

iphone - 如何更新 Tableviewcell 中的 UIProgressview?

在我将 UIProgressview 添加到 cell.contentview 之后,我如何访问该单元格上的更新 Progressview ?

0 投票
2 回答
4391 浏览

iphone - UIProgressView 进度未更新

我有一个 UIProgressView 添加到 self.view 作为子视图。我有一个加载了行的 UITableView。我需要每一行中的图像,但我不希望应用程序等待所有图像,所以我决定运行 NSThread 并加载图像过程。当我尝试从线程内部更新 UIProgressView 的进度时 - 它没有得到更新。我可能需要实施一些代表吗?

初始化

然后我运行我的线程

然后我尝试更新它

什么都没有……

0 投票
1 回答
1133 浏览

iphone - UIProgressView 默认在主视图的左上角

我的 UIProgressView 将转到主视图的右上角 - 即使我将其设置为 UIView 的子视图(它又是主视图的子视图)。即使我setFrame:.

有任何想法吗?

谢谢

0 投票
1 回答
3868 浏览

cocoa-touch - 如何使 UITableViewCell 上的 UIProgressView 立即更改?

我将 UIProgressView 放在 UITableViewCell 上,如下所示:

当下载大小发生变化时,我会这样做:

但是downPreView的外观不会立即改变,只有在我触摸单元格或其他单元格之后,所以如何使UITableViewCell上的UIProgressView立即改变?

0 投票
1 回答
14505 浏览

ios - 在 UIProgressView 上添加 NSURLConnection 加载过程

我创建了一个UIProgressView. 但我曾经NSTimer处理过UIProgressView's。现在我需要在UIProgressView加载 URL 时集成流程。UIProgressView's大小将取决于NSURLConnection's数据。

我使用以下代码来NSURLConnection.

0 投票
1 回答
904 浏览

objective-c - NSTimer Triggering UIProgressView Failure

I'm using a NSTimer in a NSObject class (Timer), that fires a method, that increments a variable and fires a method in a View Controller (InfoViewController). (Confused ;-D )

Everything shows up on the screen and and the timer is started correctly. The variable f.hunger updates and shows the correct value (when using printf("%f", f.hunger) ) but the UIProgress bar doesn't update itself. f.hunger's starting value is 1.

If anyone can help me, point out where I've made an obvious mistake or got a suggestion it would be most appreciated as it's been doing my head in for a good few hours now. I've added some sample code below to show what I'm doing a bit more clearly.

Cheers everyone. :-D

Timers Class

Info View Controller

0 投票
9 回答
25693 浏览

objective-c - UISlider 与 ProgressView 相结合

有没有一种苹果自制的方法来获取带有 ProgressView 的 UISlider。这被许多流媒体应用程序使用,例如本机 quicktimeplayer 或 youtube。(只是为了确定:我只对可视化感兴趣)

带装载机的滑块

欢呼西蒙

0 投票
1 回答
3667 浏览

iphone - 在 UIAlertView 中将 ASIHTTPRequest 与 UIProgressView 一起使用

我已经设法addSubview:在 UIAlertView 中/上设置了 UIProgressView,并为 ASIHTTPRequest 设置了所有内容,但是无论我把它放在哪里[request startSynchronous];,它都会使应用程序崩溃。

[request startAsynchronous];也无济于事。

谢谢。

这是我到目前为止所拥有的;

有一个检查文件是否存在等,这是有效的,但为了这个问题,我已经删除了它。

调用栈;

3:request = CFHTTPMessageCreateRequest(kCFAllocatorDefault, (CFStringRef)[self requestMethod], (CFURLRef)[self url], [self useHTTPVersionOne] ? kCFHTTPVersion1_0 : kCFHTTPVersion1_1);

10:CFRunLoopRun();

0 投票
2 回答
9099 浏览

iphone - 如何使用 ASIHTTPRequest 跟踪上传/下载进度

我有一些问题是使用 ASIHTTPRequest 来跟踪上传/下载进度

这是来自 ASIHTTPRequest 网站的示例

它说:myProgressIndicator是一个 NSProgressIndicator。

但看起来苹果已经弃用了 NSProgressIndicator

在这里检查

所以......我怎么知道上传/下载进度???

还有一个问题是......如果上传/下载在任务完成之前终止

如何让上传/下载任务继续从停止点(断点?)开始?

非常感谢~