It’s in UIApplication:
For Objective C:
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
For swift :
UIApplication.shared.isNetworkActivityIndicatorVisible = true
UIApplication.shared.isNetworkActivityIndicatorVisible = false
- Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy
- Should IBOutlets be strong or weak under ARC?
- How to set cornerRadius for only top-left and top-right corner of a UIView?
- How do you add multi-line text to a UIButton?
- UITableView – change section header color
- How do you load custom UITableViewCells from Xib files?
- How to copy text to clipboard/pasteboard with Swift
- How do I change the title of the “back” button on a Navigation Bar
- Autoresizing masks programmatically vs Interface Builder / xib / nib
- UIButton: Making the hit area larger than the default hit area
- Create space at the beginning of a UITextField
- Warning :-Presenting view controllers on detached view controllers is discouraged
- UITableViewCell show white background and cannot be modified on iOS7
- Setting action for back button in navigation controller
- UITableView, Separator color where to set?
- Proper practice for subclassing UIView?
- Fade/dissolve when changing UIImageView’s image
- How to disable the highlight control state of a UIButton?
- What is the AppDelegate for and how do I know when to use it?
- UITextView style is being reset after setting text property
- How to scroll to the bottom of a UITableView on the iPhone before the view appears
- Why NSUserDefaults failed to save NSMutableDictionary in iOS?
- iOS 9 not opening Instagram app with URL SCHEME
- How to add a Container View programmatically
- in iPhone App How to detect the screen resolution of the device
- How do I scroll the UIScrollView when the keyboard appears?
- How to make a transparent UIWebView
- Aligning UIToolBar items
- UIActionSheet cancel button strange behaviour
- Where to store global constants in an iOS application?
- How to export “fat” Cocoa Touch Framework (for Simulator and Device)?
- How to intercept touches events on a MKMapView or UIWebView objects?
- Programmatically align a toolbar on top of the iPhone keyboard
- can’t get correct value of keyboard height in iOS8
- How To Get Selected Value From UIPickerView
- iOS 7 and later: set status bar style per view controller
- How to hide a navigation bar from one particular view controller
- Adding padding to an UIView
- iPhone “slide to unlock” animation
- Define click event for UISegmentedControl
- How to set status bar’s content color to white on iOS 7
- Check if date is before current date (Swift)
- Is there a way to change the height of a UINavigationBar in Storyboard without using a UINavigationController?
- Change ‘Return’ button function to ‘Done’ in swift in UITextView
- Why doesn’t UITableViewCell background color work (set in interface builder)?
- How to change the corner radius of UISegmentedControl?
- ScrollView not scrolling when dragging on buttons
- Make UISlider height larger?
- Refresh UIPageViewController – reorder pages and add new pages
- Replacement for “purpose” property of CLLocationManager