Questions tagged [touch-up-inside]

40 questions
38
votes
12 answers

iOS/Swift: how to detect touch action on a UITextField

I would like to detect the touch action on a UITextField. It seems the "Touch Up Inside" action is not fired by touching inside the textfield.
Daniele B
  • 19,801
  • 29
  • 115
  • 173
24
votes
5 answers

TouchUpInside on UIView with children

I may be missing something here, but... I have a UIView with a few children (a couple of UILabel's and UIImageView). I need to catch an event when the user clicks (taps) anywhere within the parent UIView - visible part of the UIView or any of its…
Aleks G
  • 56,435
  • 29
  • 168
  • 265
10
votes
4 answers

UIButton Highlighted State not showing when clicking over a Selected UIButton

I want my UIButton to show up the highlighted state when I click over a button that is already selected. Basically in the highlighted state I apply a *.png image as my UIButton backgroundImage to give a pressed down effect. But if the button is…
luca
  • 36,606
  • 27
  • 86
  • 125
7
votes
4 answers

how can I distinguish whether user tapped the UIButton quickly or put and hold it in Swift?

I'm creating a camera app in swift and I have a UIButton. I want to propose two options: when user single taps the button - it takes photo and when user holds his finger on a button - it records the movie until user releases the button. I have…
user3766930
  • 5,629
  • 10
  • 51
  • 104
5
votes
2 answers

UIButton is not receiving actions behind UIScrollView

I put UIButton inside UITableViewCell in UITableView that is behind UIScrollView. I subclassed UIScrollView to forward touches to UITableView. So method from UITableViewDelegate didSelectRow is calling properly. The problem is that UIButton inside…
5
votes
2 answers

Add selection animation to a UIButton

I have a UIButton in one of my ViewControllers with three different state images (normal, highlighted and selected). When I press this button, it becomes highlighted and when I release it, selected. I want to make an animation that changes the…
sergiocg90
  • 489
  • 2
  • 11
  • 24
3
votes
1 answer

TouchUpInside not responding on iOS5

I hooked up touchUpInside as usual in IB, using new Xcode, build set to iOS 5.0, but my iPhone 4(latest iOS5 right before iOS6 came out) seems not to respond to that. Anybody having same issue? EDIT: Works on iOS6 simulator, not on real device...
Michal
  • 15,429
  • 10
  • 73
  • 104
3
votes
2 answers

Monotouch TouchUpInside does not work, TouchDown works

I have seen some topics about this subject in Objective-C. I read a lot of them, spent 2 days on it on trying to find a solution and none of them worked for me. I am mainly coding in C#. Since my problem behaviour (fire only when leaving/re-enter…
Patrick Simard
  • 113
  • 1
  • 8
3
votes
4 answers

UIButtons event Touch up Inside not work properly?

My question is little abmigious ,thats why I posted all my code,so I request to every one please test all this code before giving me the Answer.Thanx In my application i create all UIButtons programmatically and then save all these UIButtons in…
jamil
  • 2,419
  • 3
  • 37
  • 64
2
votes
1 answer

Detect Switch touched before changing value

I have a uiswitch in settings that allows users to view some sensitive things in the app. Before allowing users to change the switch through a tap I want to prompt them to provide a password. I tried disabling the switch but it's impossible…
Arjun
  • 89
  • 1
  • 9
2
votes
1 answer

Checking permissions in Swift 2.0

No matter where I add code to check permissions for things like camera/mic/photos, the popup confirmation always kills my app or sends me back a few view controllers. An example is as follows. I have few view controllers in (part way through a…
RobertyBob
  • 803
  • 1
  • 8
  • 20
2
votes
1 answer

How to Create Custom Controls in iOS?

I want to create a new Control which is the combination of two UIImageViews and one UILabel. I need to implement TouchUpInsite and LongPress event for the entire Control. I mean the action would perform for any UIImageView or UILabel in the entire…
2
votes
1 answer

Objective-C: ViewWillAppear runs before body of buttonTouchUpInside

I have a Storyboard iOS Application with 2 view controllers- The first Controller has a UIButton with an outlet to the next view controller and a buttonTouchUpInside method. At the moment, the second view controller's lifecycle begins before the…
ja.
  • 467
  • 1
  • 5
  • 16
1
vote
2 answers

Button click not working in iOS

I am building an ANE which will start a new View which contains a label and button. I was successful in adding view as bundle and view controller in my .a file. I am starting my view as a subview. And later when I click button, it should do some…
Ijas Ahamed N
  • 5,632
  • 5
  • 31
  • 53
1
vote
2 answers

Removed Selected State on Button While Clicking a Different Button (Swift)

I'm trying to figure out the logic in toggling button states in Swift. The concept is very simple: I have three buttons on the screen. When I click one button, it toggles to a 'selected' state When I click a different button, I want it to toggle…
MillerMedia
  • 3,651
  • 17
  • 71
  • 150
1
2 3