Questions tagged [setuserinteractionenabled]
13 questions
16
votes
2 answers
Which is better, setEnabled or setUserInteractionEnabled?
I want to make a UIButton disable for user touch. Both setEnabled and setUserInteractionEnabled can do this. Which is better? How are they different?

Yi Jiang
- 3,938
- 6
- 30
- 62
14
votes
3 answers
iOS UIButton - Difference between UIButton setUserInteractionEnabled and setEnabled
Wait!!!:I know that you may think this question have been asked and answered several time before. But I can guarantee you that this question is unique.
Question: In an iOS App, just imagine two buttons are there, like shown in the image bellow, and…

Randika Vishman
- 7,983
- 3
- 57
- 80
10
votes
4 answers
Can I make a UIPresentationController have userInteractionEnabled on PresentingViewController?
I am building a custom GUI on a universal app for iPhone and iPad. On iPad it relies heavily on "sideViews" for utilities like content manipulation, detailInformation and the like (think of an advanced SplitView). From a visual point of view the new…

jollyCocoa
- 691
- 7
- 20
1
vote
0 answers
Why is userInteractionEnabled property not working on particular UIButton?
This is probably the most frustrating situation I've dealt with, and it probably has the simplest solution.
I've got this UIButton storeB that gets properly initialized during the viewDidLoad: call of my UIViewController. Before I create the button,…

Anthony Shintoluggenprog
- 35
- 1
- 8
1
vote
2 answers
Setting userInteractionEnabled=true/false on the overlaySKScene has no effect
I have a SceneKit view like so:
mySCNKitView.scene = a SCNScene
mySCNKitView.overlaySKScene = a SKScene
Now if I set the userInteractionEnabled property on the overlaySKScene, it has no effect i.e. it is always enabled and so I can't disable user…

StackUnderflow
- 2,403
- 2
- 21
- 28
1
vote
1 answer
WatchKit User Interaction with a Label
While programming an app to time speeches, I realized that I wanted to be able for a person to pause the timer whenever they would like by simply tapping on the timer (a simple WKInterfaceLabel that updates). I already know how to create a timer and…

Nbajaj
- 23
- 2
0
votes
0 answers
Swift - isUserInteractionEnabled = false but enable 2 gestures
I would like to block interactions with users, with the exception of the double tap for cancel.
Is it possible to put isUserInteractionEnabled = false and an exception rule for my double tap lines below ?
override func viewDidLoad() {
…

Victor
- 61
- 1
- 13
0
votes
0 answers
iOS: Why [self.view setUserInteractionEnabled:NO] is changing my class address?
I use that property in a class:
@property (nonatomic, strong) NameOfMyClass* form;
When I use that code in my
main function:
form = formToSend;
//CHECK MANDATORIES
BOOL validMandatories = (0 != [self checkMandatoryFieldsWithForm:form…

ΩlostA
- 2,501
- 5
- 27
- 63
0
votes
1 answer
userInteractionEnabled on overlay blocks touchEvents on below UIViews
In an iOS app, I have an UIView that contains a UIScrollView, and an overlay UIImageView with some transparency.
The overlay view is on top of the UIScrollView and has userInteractionEnabled set to YES.
I can properly receive touch events on the…

Laurent Crivello
- 3,809
- 6
- 45
- 89
0
votes
2 answers
How to set userinteractionEnabled: to NO for an AVPlayerViewController?
I try to set userinteractionEnabled: to NO for an AVPlayerViewController
[playerViewController setUserInteractionEnabled:NO];
but I have an error
"No visible @interface for 'AVPlayerViewController' declares the selector…

ΩlostA
- 2,501
- 5
- 27
- 63
0
votes
1 answer
How to disable user interaction of a UIView's mask
TL;DR
I just want to know if there is any way to disable user interaction only for the masked portion of the view.
Here're the scenario:
I have two views View A, View B, both are of Equal Width and Equal Height.
View B is on top of View A.
I…

badhanganesh
- 3,427
- 3
- 18
- 39
0
votes
1 answer
Disabling specific view components (When SWREvealViewController is shown)
I'm using John Lluch's SWRevealViewController in my application and when the sidebar is out and the user wants to close it, the front view is constantly clicked.
What I want to do is disable the front view when the sidebar (Rear view) is shown, but…

Joakim
- 3,224
- 3
- 29
- 53
0
votes
1 answer
About setUserInteractionEnabled UIImageView in iOS
I'm newbie in iOS and i have a problem with setUserInteractionEnabled as:
I have a object extend from UIImageView like:
@interface CustomImageView : UIImageView
@property (retain, nonatomic) NSString *sNameImage;
@property (retain, nonatomic)…

dleviathan
- 87
- 1
- 2
- 17