Questions tagged [uicontrolevents]

The type of enum constant for the kinds of control events possible for control objects.

104 questions
0
votes
2 answers

How to add UIControlEvents on a UITableViewCell

I want to know how can I add UIControlEvent to a UITableViewCell? I cannot use the method addTarget:action:forControlEvents on a UITableViewCell. I cannot use didSelectCellAtIndexPath: because I need to know for UIControlEventTouchDown and…
Jason Silberman
  • 2,471
  • 6
  • 29
  • 47
0
votes
1 answer

UIControlEventTouchCancel not triggering the function

I have two buttons in my xib file. This is my interface file #import @interface ViewController : UIViewController @property (strong, nonatomic) IBOutlet UIButton *testButtonOut; @property (strong, nonatomic) IBOutlet UIButton…
Francis F
  • 3,157
  • 3
  • 41
  • 79
0
votes
4 answers

Change UIButton text when clicked

My program execute the buttonPressed method and go through the if else statement but the text on my button still does not changed. Is there something I had missed? I even already customized it in xib but the text of the buttonPlayMusic is remained…
shoujo_sm
  • 3,173
  • 4
  • 37
  • 60
0
votes
2 answers

Add target to all UIButtons' touchUpInside Event

I hope that this question's answer is as simple as the question itself. I have a sound effect in an AVAudioPlayer that I want to play when every button is pressed. Now rather than manually adding a target to play that audio file to every button in…
Liftoff
  • 24,717
  • 13
  • 66
  • 119
0
votes
1 answer

Issue with UIControlEventTouchDragOutside implementation

I have a 2-d button array in my main view and want to be able to move them by dragging inside this view. The buttons are pretty narrow, around 23x23 pixels. I have added targets for control events touchDragExit and touchDragOutside but they were…
guenis
  • 2,520
  • 2
  • 25
  • 37
0
votes
3 answers

Set Selected State of CAGradient UIButton in iOS

Hi I have made a custom button in code using corner radius CAGradientLayer and border colour in one of my view controllers like the below: phoneButton = [CustomButton buttonWithType:UIButtonTypeCustom]; phoneButton.frame = CGRectMake(6, 363, 99,…
Alex McPherson
  • 3,185
  • 3
  • 30
  • 41
0
votes
1 answer

Creating a custom UITableView index iOS

Our designers have come up with a nice design that involves the index on the right side of the UITableView to be taller than the UITableView itself. It also has some custom images for search and better font/color than the default implementation.…
Jason
  • 5,277
  • 4
  • 17
  • 12
0
votes
2 answers

Addtarget for UIControlStateNormal doesn't works

I've created a custom UIButton called SectionButton. The button have 2 images, one for the Normal State and other for Selected and Highlighted States. The button also have a text and when the button is pushed down, the TitleEdgesInset must be…
Jimmy
  • 873
  • 3
  • 12
  • 29
0
votes
0 answers

Weird UIControlEventEditingChanged behavior?

I am trying to use UIControlEventEditingChanged to register for updates whenever the text changes in my UITextField occurs. However something really odd is happening, the handlefieldTextChanged is only called when I delete a character in my…
SimplyKiwi
  • 12,376
  • 22
  • 105
  • 191
0
votes
1 answer

Detecting partial touch on UIButton

I've created a UIButton and detect the touch event by: [myButton addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside]; Everything works fine when I press exactly on the button. My problem is that if I press…
Code Monkey
  • 968
  • 1
  • 14
  • 26
0
votes
3 answers

UIControlEvents variable from a string

Is it possible to create a UIControlEvents variable from a NSString or similar? So for example, I might have a NSString that is called UIControlEventTouchUpInside which is the same as one of the typedefs for the UIControlEvents variable. Thanks for…
ManOx
  • 1,935
  • 5
  • 23
  • 37
0
votes
1 answer

Can UIControlEvents in iOS be OR'd together?

Let's say I have the following code: [somevalue_field addTarget:self action:@selector(somevalue_fieldDidChange:) forControlEvents:UIControlEventEditingDidEnd | UIControlEventTouchDragExit | UIControlEVentTouchDragOutside…
zeboidlund
  • 9,731
  • 31
  • 118
  • 180
0
votes
1 answer

UIButton Correct TouchUp detection

I am using the following code to call a function when somebody clicks on a button within a UITableViewCell. Unfortunately the code still gets called even when the touch is released outside of the button area. (e.g touch the button, slide finger off…
SparkyNZ
  • 6,266
  • 7
  • 39
  • 80
0
votes
1 answer

UIControlEventValueChanged not working when i tapped an already selected segment section

My aim is to trigger UIControlEventValueChanged delegate again when i tapped an already selected segment . So i have referred the below links uisegmentedcontrol-register-taps-on-selected-segment maintaining-selection-in-uisegmentedcontrol As per…
Shamsudheen TK
  • 30,739
  • 9
  • 69
  • 102
1 2 3 4 5 6
7