FAQ Database Discussion Community

Hide activity indicator

so in my main storyboard i created a Activity Indicator. ANd i want to hide my activity indicator until the button has been pressed. Is there a way i can do that? Here is my code, when i press the button the activity indicator starts aniatig. self.indicator.hidden = NO; [self.indicator...

Indicator within alert, indicator doesn't show up (resolved using UIAlertController)

I'm trying to follow the accepted solution from here on Xcode 6.3.2 but the indicator refuses to show up or I can't see it on my iPhone 6 plus for some reason. No error messages, the alert with the title, etc shows up and empty space. What am I doing...

Activity indicator not centered in landscape mode

I am trying to add an activity indicator on top of my table view such that it is appearing in the center of the screen in both portrait and landscape mode. The activity indicator is placed inside a view which is a subview of the main view. The table view...

iOS : using activity indicator in loading for second view controller

I have two view controllers; in the second view, a bunch of data are processed which takes pretty much time, while in the first view, there is a button navigating to the second. I want to display an activity indicator for the process in the second view right after the...

UIActivityIndicatorView crashes on release mode only

I placed a UIActivityIndicatorView in my nav bar by doing the following. in the .h file @property (strong, nonatomic) UIActivityIndicatorView *mySpinner; in the .m file - (void)viewDidLoad { [super viewDidLoad]; _mySpinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; _mySpinner.translatesAutoresizingMaskIntoConstraints = NO; _mySpinner.hidesWhenStopped = YES; UIBarButtonItem *spinnerButton = [[UIBarButtonItem alloc] initWithCustomView:_mySpinner];...

Call back at iTunes login prompt appearance

When handling inApp purchase (using Parse.com) in an iOS app, the user clicks BUY and waits for the iTunes login (or enter password) prompt to come up. During the waiting time, I display and activityView to ask the user to wait. Then when the prompt shows up, I need to...

Show UIActivityIndicatorView with JSON in Swift

I've been trying to show the UIActivityIndicatorView on app launch until the JSON finish getting the data from the website and then hide it(indicatorView). But I still couldn't figure it out! I'm using UITableView to show the downloaded data. let kivaLoadURL = "http://api.kivaws.org/v1/loans/newest.json" var loans = [Loan]() override func viewDidLoad()...

Activity indicator starts before function is called

I have a button that calls this IBAction function. The activity indicator starts as soon as the app runs instead of when the button is tapped, disappears as expected when the function completes its work then never appears again. This seems like a really simple interface thing but I'm stumped....

How to use an activity indicator for web service login

I just created an iOS app which uses web service and my problem here is when I tap log in the view controller is idle not displaying the activity indicator but when the response and data from web service is fetched and the next view controller is loaded; the activity...

How do I use the Activity Indicator during a long process?

Edit 2 - Ok, I figured a way to do this (not sure if this is the best way) but this way worked for me, which used what AstroCB wrote and some other things - maybe I had to do this because of the way it's all in a closure...

UIActivityIndicatorView not staring

I am trying to set a 'UIActivityIndicatorView' as an accessoryView in one of my 'UITableViewCell', in a such way as, the ActivityIndicator start animating when the user touch this cell. I add the following code at 'didSelectRowAtIndexPath' method: UITableViewCell * cell = [tableView cellForRowAtIndexPath:indexPath]; UIActivityIndicatorView * activity = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];...

UIActivityIndicator scrolls with tableView

I have a table view controller .When I start activity indicator to animate and then scroll the table view , activity indicator starts to scroll with that . I have tried to set a specific location for activity indicator and also add it as subview of vew .This is the...

How to dismiss alert view after a successful NSURL connection

I have an UIAlertView with the UIActivityIndicatorView. UIAlertView *alertView_Spinning = [[UIAlertView alloc] initWithTitle:@"Please wait" message:@"Connecting to server" delegate:nil cancelButtonTitle:nil otherButtonTitles: nil]; alertView_Spinning.tag=0; UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; [indicator startAnimating]; [alertView_Spinning setValue:indicator forKey:@"accessoryView"]; [alertView_Spinning show]; How can I dismiss this...

Hide uilabel, uiswitch while Uiactivity indicator spinning

Is there i way that i can hide uilabel and uiswitch while the ui activity indicator spinning and then when it stops uilabel and uiswitch apper

Is there an ActivityIndicator in WatchKit for Apple Watch?

Is there an ActivityIndicator (or something like it) in WatchKit for Apple Watch? How do you all give the user feedback about some longer lasting background activity?

How do I get my Activity Indicator to start at the right time?

From everything I read you can activate it with with a button so I put it right after the button action that starts the http POST and upload, but right now it starts spinning right after the function has finished, after the upload is complete, the opposite of what I...

UIActivityIndicatorView Not Centered

I have a TableViewController with a UIActivityIndicatorView as a subview while the content loads and it works like it should. The only problem is that I can't get the activity indicator centered on the screen. CGFloat width = CGRectGetWidth(self.view.bounds); CGFloat height = CGRectGetHeight(self.view.bounds); loadingIndicator = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(width / 2, height...

Adjust UIActivityIndicatorView position in AlertView - Swift

I've been trying to adjust the position of IndicatorView inside UIAlertView, but it never works. i tried to set for loadingIndicator loadingIndicator.center = CGPointMake(alert.bounds.size.width / 2, alert.bounds.size.height - 50) but it didn't apply at all, take a look on this photo : alert = UIAlertView(title: "Loading...", message: nil , delegate:...

Placing UIActivityIndicator in a cell when editing UITableViewCell and disable UserInteraction

When the user clicks on delete button in a UITableView(when editing is on) a UIActivityIndicator is shown in the middle of the tableView since i could not think of a way to put it in the middle of the Cell that is being deleted. This is the code that i...

Activity Indicator in Swift

I am trying to make activity indicator using swift but there is something I am missing Here is the code for start activity button button: Indicator = ActivityIndicator().StartActivityIndicator(ViewController()); And here is the code for stop activity button ActivityIndicator().StopActivityIndicator(ViewController(),indicator: Indicator); and code for ACtivity indicator class is class ActivityIndicator: NSObject {...

UIActivityIndicatorView in a UITableViewController

I am currently updating one of my apps. It fetches information from the internet and uses networkActivityIndicatorVisible to show and hide the Activity Indicator in the status bar. The one complaint we have received about this, is that it is too small, and users don't know that their device is...

Having hard time placing a UIActivityIndicator inside a UIButton

I am having some problems placing a UIActivityIndicator inside a UIButton. Here is how it looks like: And this is what i always get: with this code: self.activityView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite]; CGFloat halfButtonHeight = self.updateEventButton.bounds.size.height / 2; CGFloat buttonWidth = self.updateEventButton.bounds.size.width; self.activityView.center = CGPointMake(buttonWidth - halfButtonHeight , halfButtonHeight); [self.subSubView...