Questions tagged [touch-up-inside]

40 questions
1
vote
3 answers

UIButton is not getting touch even in full area

I have UIBUtton in UICollectionViewCell as show in image. I had set touchUpInside Action in xib. I had set background image of button is pink and lable as yellow. UIButton comes at top of the label. Now the problem is that UIButton in not getting…
Iqbal Khan
  • 4,587
  • 8
  • 44
  • 83
1
vote
0 answers

touchesBegan and touchesEnded conflict with segue when push new view controller

I have created custom UIButton and add these methods: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { self.layer.backgroundColor = self.highlightedColor.CGColor; [self setTitleColor:self.highlightedTextColor…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
1
vote
2 answers

Touch Up Inside event not working after rotation of tab bar

I have a button in one of view controller of tab bar controller. All set up in storyboard. I registered action method like this - (IBAction)buttonPressed:(id)sender { NSLog(@"Button pressed"); } The thing is that once I make left and top…
Viktor Kucera
  • 6,177
  • 4
  • 32
  • 43
1
vote
1 answer

UIButton with both Touch Up Inside and Touch Repeat?

What's the best way to get a button to be capable of both a Touch Up Inside action and a Touch Down Repeat action? Kind of like the Home button on an iPhone: one click goes to the home screen, but two rapid clicks opens the multitasking bar. Right…
Nerrolken
  • 1,975
  • 3
  • 24
  • 53
1
vote
0 answers

Response to tap event when using MPMoviePlayerViewController

I was following the advice from Scott Rogers in a previous posting "MPMoviePlayerViewController customization". I have a requirement to display only the 'DONE' button in the interface controls of MPMoviePlayerViewController. As I understand, it is…
eggfish
  • 65
  • 1
  • 7
1
vote
2 answers

UIButton TouchUpInside/TouchUpOutside not always called?

I have a UISwipeGestureRecognizer that animates accordingly to which UIButton is highlighted at the time of the gesture, it finishes the animation when the UIButton calls TouchUpInside/TouchUpOutside. This works fine for a downward swipe gesture on…
1
vote
4 answers

BackgroundImage of UIButton sometimes did not change with touchUpInside event

The UIButton is set as following code: UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 27, 27)]; [btn setBackgroundImage:[UIImage imageNamed:@"imgUp.png"] forState:UIControlStateNormal]; [btn setBackgroundImage:[UIImage…
lu yuan
  • 7,207
  • 9
  • 44
  • 78
0
votes
3 answers

Swift UIButton show and fade subview : Crashes on 'OKButtonPressed]: unrecognized selector sent'

I have made a UIButton on the storyboard, connected it to the ViewController. I want to programmatically make it show a 'hintView' on tapping, and then fade the 'hintView' by tapping an 'OKButton' on the 'hintView'. But it crashes when the…
0
votes
1 answer

How to pass a UIView on UIButton as a parameter on click event

I generated a multiple UIButton and UIView using loop, the problem is, I want that generated UIView to be hidden when the generated UIButton was clicked, The question is, how can I pass the UIView on a UIButton click event so that the system knows…
Dylan
  • 1,121
  • 1
  • 13
  • 28
0
votes
1 answer

Can't interact with UIView added to Window

I'm adding a view to the window with this objective-c code: // Main Storyboard UIStoryboard *mainStoryBoard = [UIStoryboard storyboardWithName:@"Main" bundle: nil]; // View controller with the view to add UIViewController *vc =…
iicaptain
  • 1,065
  • 1
  • 13
  • 37
0
votes
1 answer

Swift - Dismiss Keyboard and call TouchUpInside Button Simultaneously not working when using UIKeyboardWillChangeFrame

I am using swift and having issues with TouchUpInside: if I'm using UIKeyboardWillChangeFrame or UIKeyboardWillShow/UIKeyboardWillHide, & the keyboard is showing, & the button I'm trying to press is behind the keyboard when keyboard is shown…
0
votes
1 answer

UISegmentedControl determine which button is tapped when momentary = YES

I have a UISegmentedControl element where there are two buttons (i.e "Delete all Points" and "Delete Pt #x"). I don't want the buttons to ever remain selected so I have them set as "momentary = YES". I also don't want to handle click events until…
Stanton
  • 904
  • 10
  • 25
0
votes
1 answer

UIButton's .touchUpInside event not working

I am working on adding buttons to UICollectionViewCell at runtime and having the button registered to the event according to its type, at runtime. The type of the button can be, for instance, utterance button and action button, and both should be…
Fawad Khalil
  • 161
  • 1
  • 2
  • 11
0
votes
1 answer

Swift animation - Touchdown doesn't work well

I'm trying to create de same effect than the app "Music" : When I click on a button, there is a view behind and when the button is not focused anymore, the view is hidden. I do this with TouchUpInside and TouchDown funcs. @IBAction func…
KevinB
  • 2,454
  • 3
  • 25
  • 49
0
votes
1 answer

Why is touch-up-inside event not triggered on a uibutton when another button is being pressed?

I am working on a musical instrument type app. It uses a keyboard like set of UIButtons to trigger playing a musical note when touchDown occurs. The note stops playing based on touchUpInside or touchUpOutside events. Everything works as expected…
McInvale
  • 158
  • 1
  • 10