Tag: uiprogressview

要在UIAlertView上显示UIProgressView

嗨,大家好,我想在UIAlertView显示UIProgressView显示文件的上传处理,但我已经search了太多,也find了该链接,但基层无法做到这一点。 我不明白这一点 如果有人知道最简单的方法,那么请让我知道。 我会很感激。

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

我有一个问题是使用ASIHTTPRequest来跟踪上传/下载进度 这是来自ASIHTTPRequest网站的样本 ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setDownloadProgressDelegate:myProgressIndicator]; [request startSynchronous]; NSLog(@"Max: %f, Value: %f", [myProgressIndicator maxValue],[myProgressIndicator doubleValue] 它说: myProgressIndicator是一个NSProgressIndicator。 但它看起来像苹果已弃用NSProgressIndicator 在这里检查 所以…我怎么知道上传/下载进度? 另一个问题是…如果上传/下载在任务完成之前终止 如何让上传/下载任务继续从停止点(中断点?)开始? 非常感谢〜

iOS 7中的进度视图高度

我想增加在iOS 6和以下的进展视图的高度,我正在做这个使用appearence方法 UIImage *progressImage = [[UIImage imageNamed:@"sliderbk-progress.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 4, 0, 5)]; [[UIProgressView appearance] setProgressImage:progressImage]; 但现在在iOS7这个代码不工作,我甚至尝试给下面的代码,但没有用。 任何帮助将是有益的。 谢谢 [[UIProgressView appearance] setFrame:CGRectMake(20, 100, 280, 100)];

带进度条的UIWebView

嗨,我是编程新手,我正在尝试在Xcode上为iPhone创build我的第一个应用程序。 我的应用程序包含一个button,按下后会打开一个UIWebView并加载一个主页。 现在我也想添加一个进度视图到Safari也使用的WebView,这表明加载页面的进度。 我怎样才能做到这一点? 我的代码到目前为止在UIWebView中加载URL: 。H IBOutlet UIWebView *webView; .M – (void)viewDidLoad { [webView loadRequest:[NSURLRequest requestWithURL: [NSURL URLWithString:@"http:/www.google.com/"]]]; 谢谢你的帮助!

时间轴AVPlayer进度条

AVPlayer是完全可定制的,不幸的是在AVPlayer有方便的方法来显示时间线进度条。 AVPlayer *player = [AVPlayer playerWithURL:URL]; AVPlayerLayer *playerLayer = [[AVPlayerLayer playerLayerWithPlayer:avPlayer] retain];[self.view.layer addSubLayer:playerLayer]; 我有一个进度条,指示播放video的方式,还有多less像MPMoviePlayer一样。 那么如何从AVPlayer获取video的时间轴以及如何更新进度条 build议我

如何在iPhone应用程序中使用进度条

在我的iPhone应用程序,我正在从FTP服务器下载一些数据。 显示我使用UIActivityIndicator 。 如果我把UIProgressView ,而不是UIActivityIndicator ,这将是更合适的。 下载一些数据时如何使用UIProgressView ? 任何人都可以给我一个教程链接或示例代码? 提前致谢。

在UIProgressView上添加NSURLConnection加载过程

我创build了一个UIProgressView 。 但是我用NSTimer来UIProgressView's过程。 现在我需要整合UIProgressView过程,当URL加载。 UIProgressView's大小将取决于NSURLConnection's数据。 我用下面的代码来NSURLConnection 。 -(void)load { NSURL *myURL = [NSURL URLWithString:@"http://feeds.epicurious.com/newrecipes"]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:myURL cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:60]; [[NSURLConnection alloc] initWithRequest:request delegate:self]; } -(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response { responseData = [[NSMutableData alloc] init]; } -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { [responseData appendData:data]; } -(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error { [connection release]; UIAlertView *alert = […]

目标C:使用进度条下载文件

我正试图把下载过程中进行同步的进度条。 我的应用程序现在可以使用此代码下载文件… pdfData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://webaddress.com/pro/download/file.pdf"]]; NSString *resourcePDFPath = [[NSString alloc] initWithString:[[[[NSBundle mainBundle] resourcePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:@"Documents"]]; pdfFilePath = [resourcePDFPath stringByAppendingPathComponent:@"myPDF.pdf"]; [pdfData writeToFile:pdfFilePath atomically:YES]; 在此代码的过程中,应用程序在下载过程中停止,这是正常的吗? 现在我想要的是在下载的时候在停止时间放置一个进度条。 我试着查看我在网上find的代码,但是我有点困惑,我想我需要一个一步一步解释的参考。