uiprogressview

Making UIProgressView Rounded corners

自闭症网瘾萝莉.ら 提交于 2019-12-03 06:14:06
I have created a UIProgressView with following properties progressView.progressTintColor = UIColor.appChallengeColorWithAlpha(1.0) progressView.trackTintColor = UIColor.clearColor() progressView.clipsToBounds = true progressView.layer.cornerRadius = 5 I am using a UIView for border. It appears like his progress = 1, which is exactly the way I want. But if progress value is less then 1. Corners are not rounded as it should be. Am I missing something ? How can I make it rounded corner ? ooops UIProgressView has two part, progress part and track part. If you use Reveal, you can see it only has

Showing a UIProgressView inside or on top of a UINavigationController's UINavigationBar

淺唱寂寞╮ 提交于 2019-12-02 22:51:37
I want to have an UIProgressView to show a progress on the bottom of a navigation bar (just like when sending an iMessage or text message in iOS 7). But I need this consistently on every table view view of my navigation controller. So for me it was clear: I have to add this to the UINavigationController. But the problem is, it's not possible to add an UIProgressView to the UINavigationController. So I tried out two things: 1st I tried to add it to UINavigationController's view programmatically. But the problem was to position the UIProgressView and to make it look good when changing device

Progress bar for AVAssetExportSession

橙三吉。 提交于 2019-12-02 20:38:14
I've got an app that exports an AVMutableComposition into a .mov file, and I'd like for the user to see the status of the export with a progress bar the same way that you would if you sent a text message or uploaded a file. I know how to create a progress bar when I know the duration of a task (such as playing an audio file), but since there's no set duration for the export I'm unsure how to proceed. I've got an activity indicator currently but it doesn't provide the best user experience. Does anyone have any pointers? Orpheus Mercury I came up with an answer a while back so I'll post it in

progress view in alamo fire will not update when downloading file in swift 3

十年热恋 提交于 2019-12-02 19:17:54
问题 I want to download a file with alamo fire and using alert with progress to show it but the progress will not move when alamo fire progress.fractionCompleted increased I use static var to equal progres.fractionCompleted but it doesn't worked too here is my codes let destination = DownloadRequest.suggestedDownloadDestination() Alamofire.download("example.com", to: destination).downloadProgress(queue: DispatchQueue.global(qos: .utility)) { (progress) in print("Progress: \(progress

Displaying download Progress in iOS status bar

感情迁移 提交于 2019-12-02 15:44:57
问题 I would like to display the download progress in the iOS status bar the same way android does. I know we can show the activity indicator but I was thinking 回答1: You cannot display download progress in the iOS status bar. The iOS Human Interface Guidelines for Progress Indicators shows some alternatives: https://developer.apple.com/ios/human-interface-guidelines/controls/progress-indicators/ A brief summary of the options: Display a spinner using a UIActivityIndicatorView . Display a progress

progress view in alamo fire will not update when downloading file in swift 3

橙三吉。 提交于 2019-12-02 10:01:50
I want to download a file with alamo fire and using alert with progress to show it but the progress will not move when alamo fire progress.fractionCompleted increased I use static var to equal progres.fractionCompleted but it doesn't worked too here is my codes let destination = DownloadRequest.suggestedDownloadDestination() Alamofire.download("example.com", to: destination).downloadProgress(queue: DispatchQueue.global(qos: .utility)) { (progress) in print("Progress: \(progress.fractionCompleted)") sixthLevelViewController.progressdownload = Float(progress.fractionCompleted) DispatchQueue.main

Update UIProgressView in UICollectionViewCell for download file

痴心易碎 提交于 2019-12-01 22:22:42
I'm trying to update the UIProgressView in UICollectionViewCell when I download a file, but sometime the progressView update and sometime doesn't update, and I can't understand why, this is the code to display the UICollectionViewCell: -(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier = @"documentCell"; UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath]; NSManagedObject *doc = [self.magDocument objectAtIndex:indexPath

want to display UIProgressView on UIAlertView

随声附和 提交于 2019-11-30 15:28:05
Hi guys i want to display UIProgressView on UIAlertView for displaying the processing of uploading of the file but i have searched too much and also find on that link but sill unable to do that. I don't get idea from this If anyone know the easiest way to do that then please let me know. I'll be thankful. Try this code... UIAlertView *av = [[UIAlertView alloc] initWithTitle:@"" message:@"" delegate:nil cancelButtonTitle:nil otherButtonTitles:nil]; UIProgressView *pv = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleBar]; pv.frame = CGRectMake(20, 20, 200, 15); pv.progress

UIView animateWithDuration and UIProgressView setProgress

蓝咒 提交于 2019-11-30 14:37:11
问题 I want to animate my UIProgressView progression from 0 to 1 during 10 seconds. Code: [UIView animateWithDuration:10.0 animations:^{ [_myProgressView setProgress:1 animated:YES]; } completion:(BOOL finished)^{ if (finished) NSLog(@"animation finished); }]; Animation is working fine except that completion and NSLog are always called instantly. I tried animateWithDuration: withDelay: but the delay is not respected and executed immediately. Has anyone encountered the same problem? Thanks for you

How can I link a file download with a Progress View

梦想与她 提交于 2019-11-30 14:33:49
My button code below download a file from a URL, I need to link it with a Progress View to show the Downloading Progress. @IBAction func btnStream(sender: UIButton) { // First you need to create your audio url if let audioUrl = NSURL(string: "http://website.com/file.mp3") { // then lets create your document folder url let documentsUrl = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask).first as! NSURL // lets create your destination file url let destinationUrl = documentsUrl.URLByAppendingPathComponent(audioUrl.lastPathComponent!) println