The type of enum constant for the kinds of control events possible for control objects.
Questions tagged [uicontrolevents]
104 questions
4
votes
1 answer
How to make customized button key bigger like iPhone button key while clicking
While clicking, I want the big letter like in this picture.
How can I do this for my new button 'ក'? This is the code that I create button:
consonantButton = [UIButton buttonWithType:UIButtonTypeCustom];
[consonantButton setTitle:@"ក"…
user1584341
3
votes
1 answer
How can i get controlEvent type in RxSwift?
I added textfield two controlEven with RxSwift I want to different things in a method.
textField.rx.controlEvent([.editingDidBegin, .editingDidEnd])
.asObservable()
.subscribe(onNext: { event in
// setFocusing(withType:…

Avengement
- 33
- 4
3
votes
0 answers
Is it possible to relinquish control of UISwitch element even before the user releases his finger?
I have a UISwitch element which shows a alert view controller on toggle.
UISwitch *element = [[UISwitch alloc] initWithFrame:CGRectZero];
[element addTarget:self action:@selector(doSomething:) forControlEvents:UIControlEventValueChanged]; …

harshith__
- 447
- 3
- 15
3
votes
2 answers
Control event for UISlider when end tracking
I have a video player slider, I want to track event when user has started sliding video player slider and ended sliding video player slider. Also, I am tracking what slider value have changed. When slider starts and its value get changed I am able…

Ashish Verma
- 1,776
- 1
- 16
- 27
3
votes
2 answers
How do the click events on UIBarButton
As UIBarButton is not inherited from UIResponder/UIControl, how do the click events on UIBarButton work?
user4886069
3
votes
1 answer
Getting or setting the hit area of UIButtonTypeInfoLight
So it seems that the tappable area of an UIButton with the type of UIButtonTypeInfoLight is much larger than its frame. Because of this, I can not put a button right next to it, trying to tap it will tap the info button instead.
_infoButton.frame =…

Nathan
- 139
- 10
3
votes
1 answer
Implicit conversion from enumeraion type warning
Xcode is now throwing up a warning sign on a previously OK line of code.
[_slider2 setThumbImage:thumbImage2Pressed forState:UIControlEventTouchDown];
Gives the warning:
"Implicit conversion from enumeration type 'enum UIControlEvents' to…

InRainbows
- 103
- 1
- 9
3
votes
3 answers
UIResponder and multiple UIControlEvents
Is there a way to call a selector for multiple UIControlEvents?
this doesn't work, but itl'll give u an idea of what i'm trying to do.
[self.slider addTarget:self action:@selector(sliderDidStopDragging:) forControlEvents:UIControlEventTouchUpInside,…

Sean Danzeiser
- 9,141
- 12
- 52
- 90
3
votes
2 answers
UIButton not responding to 'touchUpInside' but will respond to 'touchDown' fine
In my program, I have a UIButton declared programmatically as a property of a UIVIewController. I have set it up to send actions when the user triggers the touchUpInside event, as shown here:
[restartButton addTarget:self…

Fitzy
- 1,871
- 6
- 23
- 40
2
votes
2 answers
Modify UIStepper autorepeat behaviour
I have a client who wants me to modify a UIStepper's autorepeat behaviour.
If the user selects touches and holds say the + button of the stepper, the value of the stepper starts increasing at a rate of 1 every half second or so, and then after about…

Darren
- 10,091
- 18
- 65
- 108
2
votes
2 answers
How do I add observer to UIButton?
I want be signaled when user will touch button (UIControlEventTouchUpInside). How do I add observer to UIButton?

Voloda2
- 12,359
- 18
- 80
- 130
2
votes
4 answers
How do I get a UIButton press to work in a UICollectionViewCell in Swift?
So this is a tvOS project in Swift. I have a custom UICollectionViewCell with a button as one of its subviews. I add a target to the button to allow it to interpret clicks. Here's a simplified version of the relevant code
class CustomCell:…

Programmer Unextraordinair
- 1,261
- 2
- 12
- 28
2
votes
4 answers
Multiple clicks on UIButton trigger Target function multiple times
I have a UIButton. I bound a target as follows.
[button addTarget:self action:@selector(myFunction)
forControlEvents:UIControlEventTouchUpInside];
When i click my Button multiple times quickly it invoke the target function multiple…

waseemwk
- 1,499
- 3
- 15
- 44
2
votes
1 answer
Swipe gesture mistaken for touch down
I have a UIScrollView with three sections that can be swiped to. On each section, there is a UIButton, and the user is supposed to select one of buttons. My problem is that if the user swipes through the UIButton, it is accidentally selected. My…

bhzag
- 2,932
- 7
- 23
- 39
2
votes
1 answer
How can I find button tag after implementing gesture recogniser in swift?
I want an action to be done once when someone swipes within a button.
My current code is as follows:
let recogniser = UISwipeGestureRecognizer(target: self, action: "didTapButton2:")
recogniser.direction = .Up
…

agf119105
- 1,770
- 4
- 15
- 22