Questions tagged [uicontrolevents]

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

104 questions
1
vote
3 answers

IOS:Show alert only once if UISlider changes its value

i am doing app haivng functionality of uislider when user slides the slider it moves forword and chages its value in the label.I have given action like this for that - (IBAction)sensivity:(UISlider*)sender { self.senlabel.text =[NSString…
dev
  • 65
  • 1
  • 1
  • 7
1
vote
3 answers

UIButton subclass not responding to super methods?

I would like to create a UIButton that toggles its image. Once clicked the image should change to another one and stay that way until clicked again. I have added both images to the default and selected states of the button on interface builder. Now,…
Duck
  • 34,902
  • 47
  • 248
  • 470
1
vote
0 answers

UIButton with none self target object

I try to create simple button, with handler of it's event in another class. So i write something like that: var handler = Handler() var btn = UIButton(...) ... btn.addTarget(handler, "onClick", UIControlEvents.TouchDown) view.addSubview(btn) And i…
Vitaliy L
  • 572
  • 4
  • 20
1
vote
2 answers

Adding addTarget: method to custom UIView

I created a custom UIView something like UIStepper, because I don't like the appearance of the UIStepper. I want UIStepper have a personal count label so I added it to my custom view and created a method to increase-decrease it. Now I need a…
1
vote
3 answers

Changing a UIButton's image when it's tapped

I have a UIButton that I am programmatically creating and adding to a UITableViewCell. I have successfully set it up so that if you tap the button and keep holding it down, it will change to the image that I have set for the "highlighted state", but…
user3344977
  • 3,584
  • 4
  • 32
  • 88
1
vote
1 answer

Control event not firing from class linked to resource dictionary wpf

Hi I am attempting to attach a function to text box used for entering some input information which is loaded to an interface from resource dictionary. Here is the XML,
Daniel
  • 25
  • 7
1
vote
1 answer

UIControlEventTouchUpInside not firing after UIPanGesture

For customization reasons I'm building my own slider control, which is build using several UIImageViews and a UIButton if needed. I've got the panning working using a UIPanGestureRecognizer, which is working fine. I'm trying to hook an event in that…
DJ van Wyk
  • 531
  • 1
  • 13
  • 23
1
vote
2 answers

UIControlEventTouchUpInside latency

I have a button and with a control Event like : [_flashBackButton addTarget:self action:@selector(flashBackButtonCallback:) forControlEvents:UIControlEventTouchUpInside]; if I use UIControlEventTouchUpInside there is…
amau96
  • 857
  • 1
  • 8
  • 19
1
vote
1 answer

Difference between UIButton action target methods

What is the difference between option 1 and 2? I am programatically setting up buttons and would like to know what is the advantage of one over the other or if they simply produce the same just different methods of reaching the goal. Option 1…
StuartM
  • 6,743
  • 18
  • 84
  • 160
1
vote
2 answers

Event to hide UIDatePicker

I've got UIDatePicker on UIViewController. After user selected the date and clicked outside the UIDatePicker I would like hide UIDatePicker like: -(void)hidePicker { [UIView beginAnimations:@"SlideOutPicker" context:nil]; [UIView…
1
vote
0 answers

HTML5 ui-controls pick up from canvas-1 and drag-and-drop onto cnvas-2

I am very new to web based programming and have started with HTML5 from this week. I have create a bunch of flow-chart diagrams on first canvas-1 programmatically by javascript and by using addflow (Lassange) HTML5 controls. Now I have another…
1
vote
1 answer

XML-ize the list of UI-controls on a HTML5 page

I have started using Javascript and HTML5 from last week and quite new to it. Maybe whatever I am asking is quite easy to do but googling around is not helping me. I want to loop thru ALL of the UI-controls on a HTML5 page (maybe using a javascript…
Ongo Query
  • 11
  • 1
1
vote
0 answers

Detect UIControlEventTouchDown on UITabBarItem

I would like to set the selected image of a tabbar as soon as the user touches the UITabBarItem. Currently there is a small delay before the highlight appears. Is there a way to get UIControlEvents at a UITabBarItem level ?
BrainOverfl0w
  • 257
  • 1
  • 3
  • 13
1
vote
2 answers

Change UILabel based on UIButton control events

I have a UIButton that has a default image, and another image for highlight/selected image. When pressing the button, the button's image changes to the highlighted, then to the selected if the touchUp was inside. The usual stuff.. All setup within…
Mazyod
  • 22,319
  • 10
  • 92
  • 157
0
votes
2 answers

Perform Action when UIButton State changes

I have a UIButton that performs an Action when it is touched down. I do this with [inButton addTarget:self action:@selector(cardTouchDown) forControlEvents:UIControlEventTouchDown]; Now I want to perform another action when the button leaves this…
arnoapp
  • 2,416
  • 4
  • 38
  • 70