Questions tagged [uiactivityindicatorview]

On iOS, you can use an activity indicator to show that a task is in progress. An activity indicator appears as a “gear” that is either spinning or stopped. You control when an activity indicator animates by calling the startAnimating and stopAnimating methods. To automatically hide the activity indicator when animation stops, set the hidesWhenStopped property to YES.

uiactivityindicatorview
192 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
15 votes
1 answer
5k views

InApp Purchase - How to detect when Alert 'Confirm Your In App Purchase' is displayed

I have my store all setup, everything is working perfectly. What i'm trying to do now is when they click on a button to buy something from my app, i'm displaying a custom UIActivityIndicator type ...
rob1302's user avatar
  • 1,631
5 votes
1 answer
834 views

Problems with iOS 6 and UIActivityIndicator in a UINavigationBar titleView

been having problems with this since iOS 6. I can't really figure out whats changed that would cause this behavior. This used to work perfectly in 5. Now the activity indicator doesn't come up ...
Ben's user avatar
  • 71
3 votes
0 answers
209 views

Must I call UIActivityIndicatorView.stopAnimating before UIView.removeFromSuperview?

Do I need (or is it good practice) to call stopAnimating() before I remove a UIActivityIndicatorView from its superview? If so, why? If not, why not? Related: UIActivityIndicatorView proper usage ...
ma11hew28's user avatar
  • 124k
3 votes
2 answers
571 views

Making UIActivityIndicator be the same size as the on in UIRefreshControl

I am trying to make a UIActivityIndicator be the same size as the on in UIRefreshControl since sometimes I need to refresh the screen manually and sometimes the data is refreshed without pulling the ...
Nick Ginanto's user avatar
  • 31.6k
3 votes
0 answers
194 views

UIActivityIndicatorView stop animating after minimize app and resume app?

I have an upload method which uploads audio with some other data. Uploading task gets more time. At the starting of this method I start an UIActivityIndicator using NSThread class method. ...
user avatar
3 votes
0 answers
227 views

UIActivityIndicatorView freezes when moving from one UIViewController to another UIViewController in storyboard by using custom AnimationTransition?

There is a UIActivityIndicatorView in the secondView controller and it is not spinning when I am moving from firstView controller to secondView controller. The code behind moving from firstView ...
Banshi's user avatar
  • 1,335
3 votes
0 answers
640 views

UIActivityIndicatorView inside UINavigatorBar | Auto Layout still required after executing -layoutSubviews

I would like to add an UIActivityIndicatorView (_av object) object into a left bar button item of UINavigationItem My code looks like : UIBarButtonItem * button = [[UIBarButtonItem alloc] ...
Blazej SLEBODA's user avatar
3 votes
0 answers
613 views

ActivityIndicator doesn't stop inside collectionviewcell

I'm using a UICollectionView inside a UITableViewCell to show images inside a tableviewcell. While downloading the photo in background the activity indicator should be animated en no image shown. Once ...
Jan Stulens's user avatar
3 votes
3 answers
782 views

UIActivityIndicatorView not stop in iphone app

I am using UIActivityIndicatorView in iphone application but it is not stopping Its animating not stopping. I am uploading data to server in self uploadMethod View Did Load MEthod - (void)...
Shahzad CR7's user avatar
3 votes
1 answer
711 views

UIActivityIndicatorView not animating after appearing within transitionWithView

There is a subview of my main view, with a UIActivityIndicatorView in it. Initially the hidden property of this subview is set to YES. I want this subview to fade onto the screen. I have used the ...
Jon Cox's user avatar
  • 10.8k
2 votes
0 answers
191 views

swift 3 how to make default UIActivityIndicatorView look like spinner of UIRefreshControl

The default UIRefreshControl looks like this: Then I want to create a UIActivityIndicatorView like that. Right now I tried changing the color and make it bigger, but it looks like this: Noticed the ...
iadcialim24's user avatar
  • 3,915
2 votes
1 answer
2k views

how could I add a uiactivity indicator in in bottom/footer of collection view?

i am new to swift . i can not figure how can i do it . basically i need to show uiactivity indicator when collection view loaded all data then you try to scrolling then showing uiactivity indicator . ...
cristainlika3's user avatar
2 votes
0 answers
2k views

Google Sign In Authentication taking long time, only loads after app is closed

In my app, I have implemented a Google Sign In. I am trying to get it so that when the user is authorized after pressing the google sign in button, and has signed in successfully, the user will be ...
Rakesh Kumar's user avatar
2 votes
0 answers
715 views

UBER loading action ? Are they using GIF/ Video

Uber has currently updated its app with few changes like a new app icon and adding a LOADER SCREEN between the splash screen and first view controller inorder to fetch the location of the user and ...
Deepakraj Murugesan's user avatar
2 votes
0 answers
36 views

iOS 8.4 UIActivityIndicatorView rendering

It seems something is going wrong with UIActivityIndicatorViews in iOS 8.4... How it looks on 8.2: How it looks on 8.4: If you look closely you'll see that on iOS 8.4 it seems to be rendering at ...
George Green's user avatar
  • 4,845
2 votes
0 answers
177 views

How to use some ngActivityIndicator on page?

I use Angular JS library to display preloader during is loaded content from AJAX response. In tutorial tells about using some preloaders on page based on $scope model. But it does not work for me: &...
Faud's user avatar
  • 471
2 votes
1 answer
160 views

How can UIActivityIndicatorView do not stop when the mainThread blocked?

How can UIActivityIndicatorView do not stop when the mainThread blocked?
bossbei's user avatar
  • 99
2 votes
4 answers
2k views

How to stop activity indicator?

How to stop UIActivityIndicatorView? This code doesn't work. BubbleTableViewCell.h: @interface BubbleTableViewCell : UITableViewCell { UIActivityIndicatorView *activity; } BubbleTableViewCell....
Sveta's user avatar
  • 1,280
2 votes
1 answer
601 views

How to load ActivityIndicatorView on TableView inside TabBarcontroller, XCode 4.2

Xcode - version 4.2 Target Platform - iPhone I have a TabBarController , containing 3 tabs. All tabs contain TableViewController wired to the TabBarController via NavigationController. All ...
Sri's user avatar
  • 1,337
2 votes
0 answers
303 views

UIBarButton doesn't restore itself when I set customView to nil

I've got a UIBarButtonItem that refreshes my data, and while the update is in process, I set refreshButton.customView to an instance of UIActivityIndicator, which is displayed fine. However, when data ...
HiveHicks's user avatar
  • 2,314
1 vote
0 answers
79 views

Add activityIndicator on top of avcapture session and preview layer

Hi I am attempting to add a UIActivity Indicator on top of a AVcapture session and preview layer. The AVcapture session can stop or keep going I don't care which but I need to show the animating ...
jstocke2's user avatar
1 vote
0 answers
70 views

First function begins to execute only after execute other piece of code

I have functions to show and hide activity indicator. I want show activity indicator when i delete row from tableview. But when i call delete action, function showActivityIndicator() that should start ...
sauliuskaunas_971's user avatar
1 vote
0 answers
154 views

How to detect and execute code when Buy button is pressed in In App Purchases

I want to display an activityIndicator when the user presses the iTunes buy button to finally purchase a subscription. There is a bit of time processing the purchase and soon as it's done I want to ...
mandem112's user avatar
  • 181
1 vote
0 answers
2k views

How to add Activity indicator to end of UICollectionView

Hi I have been trying to add an Activity Indicator, or a Loading spinner, to the bottom of my collection view. I have searched online on how to do so but there is not a clear way to do so. I do not ...
Mario Lopez's user avatar
1 vote
2 answers
1k views

iOS - MBProgressHUD bezelView to be transparent

I am using MBProgressHUD and want to make the bezelView to br transparent. import UIKit import MBProgressHUD class ProgressBarManager { func showProgressBar() { guard let testView = ...
ironRoei's user avatar
  • 2,149
1 vote
0 answers
94 views

how to set activity indicator to web view(yt player view) and stop when loading is complete?

@IBOutlet weak var ytplayer: YTPlayerView! var actInd = UIActivityIndicatorView() override func viewDidLoad() { super.viewDidLoad() actInd.center = self.ytplayer.center actInd....
vishnu's user avatar
  • 223
1 vote
1 answer
519 views

how to hide UIActivityIndicatorView in another view controller in swift 3?

I have a UIActivityIndicatorView in second view controller and when user select the button in the first view the Json will start But in the same time the app will run second viewcontroller with ...
Saeed Rahmatolahi's user avatar
1 vote
1 answer
231 views

Set time to stop in activity indicator while loading if it takes time to long to response swift 3

Swift 3 iOS 10: I want set the time interval to stop activity indicator if it's too long to responsd. When there is no response, it will be loading forever. Therefor, how can I stop it in the middle ...
EK Chhuon's user avatar
  • 1,104
1 vote
1 answer
92 views

Activity indicator while creating csv file

I am trying to show an activity indicator while creating a csv file, but it does not show. I am guessing I should use dispatch_async somehow, but I cant figure out how to do this in swift 3. var ...
Nils's user avatar
  • 313
1 vote
2 answers
116 views

Display Indeterminate Activity indicator while app state is restored?

I have app state preservation and restoration working in my app. Restoration is quite CPU intensive and on the oldest devices supported, restoring the app state can take up to 5 seconds, so I would ...
Jeshua Lacock's user avatar
1 vote
0 answers
66 views

Can't manipulate subview properties after it has been added to superview - iOS Swift

I'm trying to add a UIActivityIndicatorView to a button. The problem is, once the activity indicator view is added as a subview, I can no longer do anything with it. Here's my code below: saveAiv = ...
Adam Zarn's user avatar
  • 2,008
1 vote
5 answers
103 views

Show indicator for two request

I have two requests. Each of them getting different data. I need to show an indicator when the all of two request is requesting. How i can do this? this is my first request: func productList(...
beka.angsabay's user avatar
1 vote
1 answer
404 views

Show Activity Indicator on viewWillDisappear

On viewWillDisappear I need to update quite a few Core Data records and in doing so it creates a lag when I move from one viewController to another (via Tab View Controller.) In my viewWillDisappear ...
anders32's user avatar
  • 295
1 vote
1 answer
85 views

UIActivityIndicator not stopping when UICollectionView is reloaded

Needed Result: I have a small issue coming up with UIActivityIndicator and UICollectionView. I start activity indicator when the request is send and stop as the response comes. When the response ...
saksha nagpal's user avatar
1 vote
0 answers
43 views

Network activity indicator show in status bar on applicationdidenterinbackground

Hi i am working with application download file from server. Every things work fine but the network activity indicator don't show me when i enter application in background. The process is as below: I ...
Hrushikesh Betai's user avatar
1 vote
0 answers
262 views

Activity indicator not hiding

I want to use activity indicator to show loading activity, like this: -(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ //Create cell ...
Evgeniy Kleban's user avatar
1 vote
0 answers
98 views

Why activity indicator in didSelectRowAtIndex appears so late?

I have a UITableView and want when I tap on cell will appears activity indicator on screen, but it appears just a half of a second, before the segue performs. My two functions: func ...
Orkhan Alizade's user avatar
1 vote
0 answers
573 views

SWIFT: How to display activity indicator when user clicks on Tab Bar

I'm trying to add an activity indicator when a user clicks on my tab bar menu but it seems complicated actually. I have 4 tab bar items and they parse a json from an URL. My problem is when the user ...
Marc Gonzàlez Capdevila's user avatar
1 vote
2 answers
2k views

UIActivityIndicatorView startAnimating not working in searchBarSearchButtonClicked

The problem which I can't get through is that the UIActivityIndicatorView in my View doesn't start animating when I execute [UIActivityIndicatorView startAnimating]; In ...
rambodrahmani's user avatar
1 vote
1 answer
268 views

MBProgressHUD not showing from another class

I'm getting values from Parse Cloud by pressing a button. The code for getting the data data from Parse is in another class, but when I try to show the MBProgessHUD from that class it doesn't do ...
user3768711's user avatar
1 vote
1 answer
144 views

What happens if I hide the parent view that contains an UIActivityIndicatorView attached? Does the activity indicator still spin and take cycles?

In my app I attach an UIActivityIndicatorView to a larger view that covers the entire app to prevent users from pressing buttons while I save data to the cloud. When I save, I un-hide the view ...
Carl Prehn's user avatar
1 vote
1 answer
560 views

How do I show a UIActivityIndicator above the searchBar in UITableView

I am trying to find out what the correct way is to add a searchBar and an activityIndicator to the top of UITableView (grouped). The searches may take a few seconds to complete and I would like the ...
Duncan Groenewald's user avatar
1 vote
1 answer
2k views

UICollectionView rendering and activityindicator

I loaded a UIView from a UIViewController. This UIView contains a (big) UICollectionView. The transition from the first UIView to the second UIView is very slow: It seems that when the rendering of ...
gdm's user avatar
  • 7,713
1 vote
0 answers
2k views

Activity Indicator Not Showing

I have a table view that gets it's data from an RSS feed. I'm trying to get my activity indicator to show while the table view is loading in my iPad app. It works fine on iPhone but the indicator ...
raginggoat's user avatar
  • 3,600
1 vote
1 answer
1k views

UIActivityIndicatorView not animating on UITableViewCell ?

I have UITableView and I am filling it whit data from server. I implement some sort of paging, so I go to server and fetch 7 items and then when I scroll down I fetch another 7 and so on. This is ...
user avatar
1 vote
0 answers
178 views

Tabar Activity Indicator in Storyboard

I would like to add an activity indicator to a tab bar constructed inside a STORYBOARD using ARC. I've looked at methods involving the application delegate prior to storyboards but don't seem to find ...
John Jamieson's user avatar
1 vote
1 answer
269 views

Activity indicator as annotation accessory

I have a mapView with annotations which they have a button as right accessory view. If you press the button as soon as the annotation details appear then details appear to be empty because there was ...
user1780591's user avatar
1 vote
2 answers
589 views

UIActivityIndicatorView displayed beneath the keyboard

Inside a static library (lib.a), I have a NavigationController in a Storyboard that I initiate after a button tap with: [mainWindow.rootViewController presentViewController:newController animated:...
mcocaro's user avatar
  • 54
1 vote
1 answer
333 views

Create a Slider and Custom ActivityIndicator for Streaming Audio

I am Working with streaming URL and I need to create a UISlider(control volume) and an indicator(buffering/loading) like one in the above image. Code I am using is _theAudio=[[AVPlayer alloc] ...
vishnu's user avatar
  • 239
1 vote
0 answers
180 views

Background color of UIActivityIndicator on UITableViewCell is overridden

Using iOS 6, Xcode 4.5. I have a UIActivityIndicator that is on a UITableViewCell (using dynamic prototype cells). When I call startAnimating, the background color of the activity indicator is ...
guywithmazda's user avatar