uievent Questions
3
Solved
Is there a way to gain the type of touch gestures that triggered a UIEvent? So, let's say I intercept a gesture with hitTest:withEvent:. How do I identify what kind of touch (pinch, tap, swipe, etc...
2
Solved
I am having 3 UIViews stacked one on top of another
UITableview
planeView
rootView
TableView is at the top and rootView at the bottom. (rootView is not visible as TableView is on top of it)
I ...
Dineric asked 14/11, 2011 at 20:35
3
Solved
Newest Update: I created a brand new project that is built the exact same way as below. However, this test project actually works just fine even though it seems to be the same... One thing I've not...
Noisemaker asked 8/7, 2013 at 17:44
2
Solved
I have an application that plays music and want to use lockscreen control (play/pause).
With NSLog I can see that my app get's the button trigger but not theUIEventSubtypeRemoteControlTogglePlayPau...
Hurdygurdy asked 18/10, 2013 at 9:16
3
I have an requirement that to handle headphone play/pause button events in foreground. How ever I am able to handle the same scenario in background using the below code
if ([[UIApplication sharedA...
Heterochromosome asked 15/3, 2013 at 4:10
2
Solved
I'm using an instance of AVAudioPlayer to play an audio file. The app is configured to play audio in the background and an appropriate audio session is set. I am also successfully receiving remote ...
Bibliotheca asked 19/2, 2014 at 20:51
1
When I rotate the app twice after selecting a few items, it crashes. I have overridden the sendEvent method and that's where the debugger stops. When I try to print the event type, it shows me some...
2
Solved
This worked perfectly before:
func doSomethingOnDrag(sender: UIButton, event: UIEvent) {
let touch = event.touchesForView(sender).AnyObject() as UITouch
let location = touch.locationInView(sende...
2
Solved
The enum UIEventSubtype (iOS UIKit Framework) contains events such as play, pause, next, seek, etc. However, the iPod Access protocol contains numerous other events, such as select, up, down and ba...
Barros asked 7/12, 2012 at 17:27
1
I have a custom UIView that implements hitTest:withEvent:
-(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
.... some code ....
int x = 0;
x = [[event allTouches] count];
return [...
3
Solved
On Mac, one can always get the location of the mouse "outside the event stream" (ie, even if you've not subscribed to any delegate methods for mouseUp: et al) by calling [NSEvent mouseLocation].
I...
Domineer asked 12/8, 2013 at 17:38
3
I can't find anything to explain lost UITouch events. If you smash your full hand on the screen enough times, the number of touchesBegan will be different than the number of touchesEnded! I think t...
Jansen asked 16/2, 2012 at 23:54
3
Solved
I have a subclass of UIView on top of a UITableView. I am using the UITableView to display some data and, at the same time, I would like to overlay an animation that follows the finger (for instanc...
Religious asked 3/12, 2011 at 20:9
1
Solved
How would you allow a UIGestureRecognizer of a UIView to receive a touch event but also make sure that another, underlaying/overlaying UIView also receives that very same touch event?
Lets say I h...
Frulla asked 30/5, 2011 at 10:43
1
© 2022 - 2024 — McMap. All rights reserved.