My ActivityIndicator comes up at the right time but the user can still press the buttons on the view while processing is occurring. The reason I'm using ActivityIndicator is to prevent such usage. How do I make sure that during the animation of ActivityIndicator, no UI interaction is possible? Also, I would prefer that the current view is still displayed to the user(as in I wouldn't prefer having an opaque view of UIActivityIndicator-if that's possible-unless that's the only option)
activity indicator in iOS should prevent user from access to other UI elements until it stops animating
1.9k Views Asked by Namratha At
2
There are 2 best solutions below
0
Dan Ray
On
Check out DSActivityView. It's a one-shot singleton that puts up a modal activity view VERY easily.
Include it in a View Controller, and then before you fire a long-running background process, you go:
[DSBezelActivityView activityViewForView:self.view];
And then when you're done and want to retire it, you go:
[DSBezelActivityView removeViewAnimated:YES];
Lots of configuration options, including the ability to put custom messages in the activity view... It's a great little library that I use ALL the time.
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in USER-INTERFACE
- Perl Command Line Interpreter crashing on exit
- Android - How to check for button click in a custom alert dialog box?
- Working towards a more advanced graphics game
- Use GUI displayed results of SQL query vs new queries?
- Efficiently design method to construct a Java GUI?
- Implementing callback function for dialog-based application
- Ui-router URL changes, nested view not loading
- Dont see anything inside my jframe
- Sliding Card Design
- Display value of Y axis inside GUI plot
- Sash becomes lost after resize
- Java Swing Drawing Rectangles
- How do I convert point to local coordinates?
- WPF Workaround to add Window control as a child of visual
- Developing multi page app like Viber interface using Qt Quick?
Related Questions in VIEW
- Serve arbitrary html in angular data bind
- Switching CSS Just for that view?
- Setting % of a background color programmatically
- Change the View BackgroundColor on Tap
- Pass html.dropdownlistfor current value to Actionlink?
- Filter Field in List by boolean value in MVC
- Android How to change icon with button
- frame.origin Change error on View when Table Cell selected
- How to pass a specific model field to views' functions or methods?
- python django class based view and functional view
- django rest framework - adding to views.obtain_auth_token
- Is it possible to draw on an SFML window regardless of views?
- SQL Join Views - Duplicate Field
- Android change layout depending on if statement
- how to merge entity reference relationship field value
Related Questions in UIACTIVITYINDICATORVIEW
- Activity indicator starts before function is called
- Swift Activity Indicator and Label
- How do I get my Activity Indicator to start at the right time?
- UIActivityIndicator is showing behind everything else in my view
- Can't manipulate subview properties after it has been added to superview - iOS Swift
- UIActivityIndicator stopping animating before NSFetchedResultsController finishes fetch
- Activity indicator until load the next view
- Remove parse.com activity indicator
- UIActivityIndicatorView stop animating after minimize app and resume app?
- Swift Xcode6 UIActivityIndicatorView Slow to display
- UIActivityIndicatorView startAnimating not working in searchBarSearchButtonClicked
- How to display activity indicator in center of UIAlertController?
- Activity Indicator stop animation has no effect
- objective c - Display activity indicator when parsing an xml on tableview cell click
- MBProgressHUD doesn't show when using it in tableView
Related Questions in INTERACTION
- Force specific interactions in Package 'earth' in R
- Python object interaction
- InteractionRequest Raise not showing up the Popup (Prism - Interactivity)
- Prism RequestNavigate not working in a Popup window
- Interactive Android Animation
- How do I interact with a grid using a 2D array (Proce55ing)
- How to create an interaction between charts in d3
- OpenLayers 3 How to register Feature Modified event as "featuremodified" in OpenLayer 2
- How can python wait for a batch SGE script finish execution?
- Identifying repeat interaction from two columns
- Get lsmeans from lm model with fix nested effects
- R: Force data.table to compute all interactions
- Triple click as events on React?
- Making methods that interact with instances of their structs
- VB .NET | App to App Interaction
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
ActivityIndicator's job is to like names says indicate that something goes on, and not to disable all interactions...You should be the one to do that...you could try with setting userInteractionEnabled property to NO.
When everything is finished set it back to YES