touchesbegan Questions
5
Solved
I'm experiencing an issue where the first call to touchesBegan:withEvent: on a UIView or UIViewController is delayed when you touch on the left edge of the screen. This seems to be a new issue with...
Posse asked 2/10, 2016 at 2:16
4
In some maintenance of some multitouch "drawing on screen" code, I met a bug relative to how references to touches instances should be set between touchesBegan:withEvent:, touchesMoved:withEvent: a...
Incorporable asked 9/9, 2011 at 10:11
5
Solved
I'm trying to figure out how to put an annotation on a map based on where the user touches.
I have tried sub-classing the MKMapView and looked for the touchesBegan to fire but as it turns out, MK...
Dracaena asked 20/6, 2010 at 17:23
2
I have a touchesBegan method in my AppDelegate. I use it to detect taps in the status bar. I've had it there for a long time and it's worked great. Until the iOS 13 betas came out...
Ever since u...
Exit asked 5/9, 2019 at 13:33
11
Solved
I am trying to detect if my sprite node has been touched and I have no idea where to start.
let Pineapple = SKSpriteNode(imageNamed: "Pineappleimg")
Pineapple.userInteractionEnabled = true
Pineapp...
Isthmian asked 13/1, 2015 at 12:27
7
Solved
In my add contact page, i have a view and a scrollview on it and again a view on it. and in that last view i ve textboxes, etc. i have given the 'touchesBegan' method but it is called only for the ...
Selfexecuting asked 4/7, 2013 at 10:26
3
Solved
Can someone please explain the high-level difference between these two methods? In particular, when would you use one over the other, and is there any overlap in terms of the purposes of these meth...
Ungrounded asked 2/7, 2013 at 0:24
14
I am going through the Sample code of iPhone WWDC 2010 - 104 PhotoScroller App.
It's working great with my project related images (PDF Page Images)
but I am struggling detect touches in the PhotoS...
Latinity asked 19/10, 2010 at 11:48
5
Solved
I am new to iOS, I am using UIPanGestureRecognizer in my project. In which I have a requirement to get current touch point and previous touch point when I am dragging the view. I am struggling to g...
Phagocytosis asked 7/11, 2012 at 12:45
2
Solved
In AcaniUsers, I've created a grid of ThumbView : UIView instances inside of a UITableView. All thumbViews have a width of kThumbSize. How do I detect if touches ended inside the same view in which...
Strickland asked 23/4, 2011 at 2:35
7
Solved
If I lift my finger up off the first touch, then it will recognize the next touch just fine. It's only when I hold my first touch down continuously and then try and touch a different area with a di...
Clarhe asked 28/4, 2010 at 2:51
1
On iPhone's with 3D touch enabled, there is a feature where long pressing the left hand side of the screen with enough force opens lets you change which app is active. Because of this, when a non-m...
Nikko asked 12/10, 2016 at 12:21
2
I'm making a custom keyboard and I'm in a really weird situation.
I've noticed that when I catch the event touchesBegan at the rear left (about 20 pixels) of the UIView (inputView), I'll have some...
Karaite asked 16/11, 2015 at 2:28
1
Solved
If anyone here has played Agar.io before, you'll probably be familiar with the way the camera moves. It slides toward your mouse depending on the distance your mouse is from the center of the scree...
Angling asked 25/6, 2017 at 12:38
4
Solved
In my app I need to catch the exact number of finger on the screen, I try two ways but I have 2 different problem.
First way:
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
NS...
Curly asked 8/4, 2013 at 17:57
2
Solved
I have a UITextView inside a UITableViewCell subclass. It has editable and userInteractionEnabled both set to NO. This allows the UITextView to detect data such as links and phone numbers. The data...
Precatory asked 10/12, 2013 at 23:37
4
Solved
I need to drag my UIView object. I use this code, but it does not work
float oldX, oldY;
BOOL dragging;
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [[ev...
Desilva asked 13/2, 2013 at 15:24
2
Solved
In SpriteKit's SKSpriteNodes and other visible nodes, responding to touches in those nodes is often done in some manner like this:
override func touchesBegan(_ touches: Set<UITouch>, with ev...
Tony asked 1/12, 2016 at 6:8
1
Solved
I've asked a similar question, and I've read countless other questions but I still can't figure this out and I've spent a few nights now trying to solve it.
I have a custom UITableView class whic...
Larsen asked 6/10, 2016 at 22:55
0
I am making a game with swift 3.0 on Xcode 8.0 beta. In my GameScene I have this touchBegan function:
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
for t in to...
Convergent asked 4/7, 2016 at 15:39
5
Solved
How can I use touchesBegan: withEvent: method in UITableViewController class?
UITableViewController is a subclass of UIViewController class. So why the method does not works in UITableViewControll...
Bunde asked 9/1, 2012 at 7:34
2
Solved
I know there already are some questions about this but I couldn't find a solution.
There is a very simple code that works just fine on one of my projects but not on an another one:
Here is the co...
Kenn asked 25/5, 2015 at 17:20
1
Solved
In the Apple documentation here Advanced Scene Processing it describes the update method and how a scene is rendered, but it does not mention when input is processed. It is not clear if this is in ...
Kassandra asked 20/4, 2015 at 18:14
2
Solved
I know that this is a very commonly asked question, but all of the answers on every website don't work! If you still don't know what I mean, then maybe this line of code will help you understand.
...
Armand asked 15/4, 2010 at 19:53
4
Solved
As an iOS programming newbie I am struggling with a word game for iPhone.
The app structure is: scrollView -> contentView -> imageView -> image 1000 x 1000 (here fullscreen):
I think I...
Procurator asked 22/3, 2014 at 19:45
1 Next >
© 2022 - 2024 — McMap. All rights reserved.