The type of enum constant for the kinds of control events possible for control objects.
Questions tagged [uicontrolevents]
104 questions
0
votes
0 answers
iphone6s called wrong UIControlEvent method
I wrote a simple demo to show my issue.The button need to be added two touch events:drag and touch.
UIButton * btn1 = [UIButton buttonWithType:UIButtonTypeCustom];
btn1.frame = CGRectMake(300, 100, 100, 100);
btn1.backgroundColor = [UIColor…

michiko
- 1
- 1
0
votes
0 answers
iOS - UIButton requires two taps with UIControlEventTouchUpInside
For some reason my UIButton requires two taps to trigger and I don't understand why, this is not the desired functionality and all of my other buttons work as expected
Here is the addTarget code:
[self.myButton addTarget:self…

CQM
- 42,592
- 75
- 224
- 366
0
votes
1 answer
Listen user performed state changes on an iOS Switch
In my iOS application I have UITableView and in some of the cells are a Switch.
I have set a Listener on the Switch in the following way:
[cell.toggle addTarget:self action:@selector(onSwitchToggle:)…

Joakim
- 3,224
- 3
- 29
- 53
0
votes
1 answer
Buttons created programmatically doesn't receive touch up inside events... UICollectionViewCell
I'm creating Collection View Cells programmatically using Facade framework to position it right. Unfortunately buttons inside cells doesn't react to touches.
Collection View is created using storyboard.
CollectionViewCell appearance loading:…

Adish
- 25
- 8
0
votes
1 answer
Trigger UICollectionViewCell press on UIControlEventTouchDown event instead of UIControlEventTouchUpInside?
I have a UICollectionView with 35 square UICollectionViewCells. Upon pressing them, an audio file is played. I cannot however press two or more cells at the same time because the audio file is triggered once my finger leaves the button (i.e.…

TestinginProd
- 1,085
- 1
- 15
- 35
0
votes
1 answer
Custom cell UITextField updated in all cells across all sections
This is a dynamic prototype UITableView: In my cellForRowAtIndexPath:
I have dequequed my custom cell and this works just fine:
TimeSetViewCell *cell = [_tableView dequeueReusableCellWithIdentifier:@"timeCell" forIndexPath:indexPath];
Next I set…

F.Lee
- 1
- 2
0
votes
1 answer
UIControlEventEditingChanged not detected when deleting only remaining character from UITextField?
I am trying to get a character count while typing into a UITextField. I use UIControlEventEditingChanged notification to then get the current count:
[textField addTarget:self action:@selector(handleTextDidChange:)…

JimmyJammed
- 9,598
- 19
- 79
- 146
0
votes
1 answer
Implicit conversion from enumeration type 'enum UIControlEvents' to different enumeration type 'UIControlState' (aka 'enum UIControlState')
I am using Xcode 5.0.2 and getting the following warning when trying to compile my objective C code:
**Implicit conversion from enumeration type 'enum UIControlEvents' to different enumeration type 'UIControlState' (aka 'enum…

Mihir Oza
- 2,768
- 3
- 35
- 61
0
votes
1 answer
UIControlEventTouchDown does not work with UIScrollView
I have this code, who capture when the user click in my textfield, and call a function:
-(void)viewDidLoad{
[mytextfield addTarget:self
action:@selector(callvariant:)
forControlEvents:UIControlEventTouchDown];
…

user3781174
- 245
- 5
- 16
0
votes
1 answer
Implement touch cancel on UIButton
I have a subclassed UIButton that I made into an irregular shape (Parallelogram) where I override the touch events so it will only accept touch events inside the shape
How can I implement a touch event like a normal UIButton where I can cancel a…

SleepNot
- 2,982
- 10
- 43
- 72
0
votes
1 answer
UIAlertView after exiting UIPickerView as inputView
Hi I have a textfield to which I have assigned a UIPickerView as inputView. The UIPickerView has a method called using addTarget:action:forControlEvent: which I want to bring up an alertView to ask the user if this change is what they…

shane
- 1,742
- 2
- 19
- 36
0
votes
1 answer
Detect single controlevent for all buttons
I know I can detect if my button is being held down by adding a selector like this
[button addTarget:self action:@selector(buttonDown:) forControlEvents:UIControlEventTouchDown];
But with 50+ buttons in a single view I have I'm trying to see if…
user3550397
0
votes
1 answer
UISwitch in ios7 not triggerring action messages often
UISwitch added to a UITableviewCell with the target event UIControlEventValueChanged, is not triggering the action messages or events very often (ie the selector action method is not getting called).
0
votes
2 answers
Intercept UITextField touch
I would like to intercept a touch on a UITextField, for instance when I first load it I give it a @selector() to load a different method instead of the delegate stuff?
This is my attempt:
descriptionText = [[UITextField alloc]…

HurkNburkS
- 5,492
- 19
- 100
- 183
0
votes
1 answer
UIControl subclass - how to stop touch event flow?
I am writing a board game app (like chess). The main view recognizes swipe gestures (UISwipeGestureRecognizer) started anywhere in its fullscreen view, which make the board rotating.
Now I added a square-shaped transparent subview exactly over the…

Voyteck
- 354
- 2
- 13