The type of enum constant for the kinds of control events possible for control objects.
Questions tagged [uicontrolevents]
104 questions
2
votes
0 answers
UISwitch valueChanged event in iOS 7 vs previous
In iOS 6 and previous, if you register for UIControlEventValueChanged on a UISwitch and the user taps the switch, your method is called when the change animation finishes. In iOS 7, it appears to happen when the switch animation starts (or at least…

Tom Hamming
- 10,577
- 11
- 71
- 145
2
votes
3 answers
Is an event triggered when a UITextField with secureTextEntry = YES is cleared?
I have a UITextField instance with secureTextEntry = YES. When the field first gains focus any keypress will clear the field, as appears to be standard behavior on iOS.
As far as I can tell, UIControlEventEditingChanged is not triggered. I have also…

Paul Young
- 1,489
- 1
- 15
- 34
2
votes
4 answers
Detect a finger after TouchDown leaving the control, before TouchUp
I have some UIButton instances that execute different code on their UIControlEventTouchDown and UIControlEventTouchUpInside events. At the moment I'm hitting an issue where if the user touched down, then dragged their finger out of the UIButton's…

Luke
- 9,512
- 15
- 82
- 146
2
votes
2 answers
Upgrade to IOS 6 custom keyboard no longer responds to UIControlEventEditingChanged
I'm wondering if there's anyone else out there that has come across this problem or that might be able to help?
Essentially, i am using a custom keyboard on a screen within my app.
On the screen there are x4 text fields. On load, the first responder…

user1837078
- 25
- 7
1
vote
2 answers
xCode4 - How to change a UIbutton when an event changes?
I have an app, where when the button is pressed, an action happens .. I can get the button to change when the action starts by using:
UIImage *changeImage = [UIImage imageNamed:@"stopGrey.png"];
[myButton setImage:changeImage…

ICL1901
- 7,632
- 14
- 90
- 138
1
vote
1 answer
How do I set primaryActionTriggered for a custom UIControl?
I've created a custom UIControl. The closest comparison is a UIStepper but it is a subclass of UIControl because its wholly custom.
For most UIControls you can create target actions with primaryActionTriggered to avoid needing to know which action…

Ryan Poolos
- 18,421
- 4
- 65
- 98
1
vote
3 answers
Subscribing On UITextfield (Control event, Editing changed)
I want to use RxSwift to get the text from a UITextField after the UIControlEvent Editing Changed is triggered.
In Order to do that:
I connected the textfield outlet from storyboard to my view controller like that.
@IBOutlet weak var…

MhmdRizk
- 1,591
- 2
- 18
- 34
1
vote
1 answer
How can I override addTarget in a UITextField for only UIControlEvent.allEditingEvents?
How can I override the addTarget function inside the UITextField class, but only for UIControlEvent.allEditingEvents?
The function is like this, however I am not sure how to apply it only for a specific control event.
override func addTarget(_…

dre_84w934
- 678
- 8
- 27
1
vote
0 answers
Why is my app not responding to remote control events?
I'm making an app that plays an audio stream on the background when the device is locked. I want the app to respond to the media controls on the lock screen. I followed this answer but for some reason I can't make my app respond to these controls.…

Marilyn García
- 105
- 1
- 13
1
vote
1 answer
Make a custom class of UIPickerView able to send events in Swift
I've written a custom class based on UIPickerView. Within a class I implemented next method:
func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
let min = (selectedRow(inComponent: 0) %…

Andrew V. Jackson
- 273
- 1
- 4
- 14
1
vote
1 answer
Difference between UIControl events
Documentation of UIControl Class:
What is the difference between UIControlEventTouchDragInside, UIControlEventTouchDragEnter, UIControlEventTouchUpInside? All seem to be the same.

A_G
- 2,260
- 3
- 23
- 56
1
vote
1 answer
UISegmentedControl not selecting when value changes
Previously I had an issue having an UISegmentedControl in tableview section header cell, and I wanted to listen to value changes in the main view controller.
I got this solved by using addTarget on the UISegmentedControl in the…

rebellion
- 6,628
- 11
- 48
- 79
1
vote
2 answers
What is UIControlEventTouchCancel?
When the user taps and holds down a UIButton in my app, after a while a UIControlEventTouchCancel event is fired. The Apple documentation for UIControl doesn't have any detailed explanation about this event. Why is it triggered? What is it used…

user3246173
- 488
- 6
- 18
1
vote
0 answers
Is it possible to make a view ignore all touches while a UITouchDragExit control event is being performed on one of its subviews?
I have a UIView with a bunch of subviews. Each subview can either be clicked (UITouchUpInside) or 'swiped' (UITouchDragExit) to perform a different action. Both actions work as intended separately, but since the subviews are really close together,…

cyril
- 3,020
- 6
- 36
- 61
1
vote
0 answers
Define my own UIControlEvent
I need to define my own UIControlEvent to do something like
[activeField sendActionsForControlEvents:MYEvent];
how to override UIControlEvents?

user3098173
- 133
- 11