uiresponder Questions
3
Solved
Task
Add a single tap gesture to UICollectionView, do not get in the way of cell selection.
I want some other taps on the no-cell part of the collectionView.
Code
Using XCode8, Swift 3.
overr...
Sadonia asked 1/11, 2016 at 18:7
10
The following code expresses my problem:
(It's self-contained in that you could create a Xcode project with an empty template, replace the contents of the main.m file, delete the AppDelegate.h/.m ...
Offset asked 4/11, 2012 at 11:44
4
So we have predictive bar in iOS 8 but it covers my input field above the keyboard. I found only one solution to hide it by setting correction of textView to NO. But it turns off correction as well...
Gripper asked 23/9, 2014 at 11:47
2
I know that touch events can delivery to hit-view or gesture. but something confused me in my demo:
I have two subviews in my root view, one is testView (subclass of UIView), the other is testBtn(...
Between asked 12/12, 2016 at 9:49
4
Solved
Is it possible to get continuous key presses?
I'm using keyCommands: to intercept the arrows keys being pressed on an external keyboard, but I only get 1 call per press. I would love to get eithe...
Alfalfa asked 9/1, 2014 at 12:51
3
I am developing a keybaord extension for iOS. On iOS 9 the keys react imediatelly except for keys along left edge of the keyboard. Those react with around 0.2 second delay. The reason is that the t...
Textile asked 9/11, 2015 at 22:34
7
Solved
I have a custom UIViewController whose UIView takes up a corner of the screen, but most of it is transparent except for the parts of it that have some buttons and stuff on it. Due to the layout of ...
Cataract asked 10/10, 2011 at 22:30
2
Solved
I have simple subclass of UIViewController (code below).
If I attach inputAccessoryView, my viewcontroller is never deallocated. If I do not set inputAccessoryView in viewDidLoad, dealloc is calle...
Mendelssohn asked 6/7, 2014 at 12:57
5
Solved
This is what the documentation says:
If the first responder [to an event or action message] cannot handle an event or action message, it forwards it to the “next responder” in a linked series ca...
Tabbi asked 19/7, 2011 at 2:42
6
I have added custom menu controller when long press on UICollectionViewCell
[self becomeFirstResponder];
UIMenuItem *menuItem = [[UIMenuItem alloc] initWithTitle:@"Custom Action"
action:@select...
Translucid asked 10/6, 2013 at 13:7
4
Solved
When the parent view has userInteractionEnabled=NO, its subviews will not accept touch events even if their userInteractionEnabled property is set to YES.
Is there any way to still get touch event...
Lardaceous asked 11/1, 2011 at 19:11
3
Solved
I'm trying to follow this guide, but using swift:
InputAccessoryView docked at bottom
I can't seem to set the inputAccessoryView for my ViewController, according to the documentation, I need to re...
Y asked 10/11, 2014 at 10:8
10
Solved
I'm trying to figure out how this is done the right way. I've tried to depict the situation:
I'm adding a UITableView as a subview of a UIView. The UIView responds to a tap- and pinchGestureRecog...
Eisenhower asked 7/3, 2011 at 17:32
8
When the keyboard is showing on the iPhone's Messages app, if the user begins a swipe down from the messages tableview and continues into the keyboard area, the keyboard will begin to dismiss. If t...
Polston asked 20/8, 2011 at 17:38
3
I used to detect a shake motion from the AppDelegate by simply implementing this method:
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event {
NSLog(@"shake shake shake");
}
w...
Ric asked 15/9, 2016 at 19:1
2
Solved
I have a strange visual bug that only affects iOS 9 devices:
My app’s login UIViewController runs off and gets an OAuth token when you hit the button, much like you’d expect. If the response from ...
Rhymester asked 23/9, 2015 at 15:55
12
I have a UIImage view that responds to touch events. I want to cancel the touch sequence, i.e., further calls to touchesMoved:, if the touch goes outside of certain bounds. How can I do that?
I kn...
Avelin asked 10/2, 2009 at 18:37
1
Solved
I am using react-native for Android development. I have a view on which if user does long-press, I want to show an Animated View which can be dragged. I could achieve this using PanResponder, which...
Heulandite asked 5/7, 2016 at 8:31
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
4
Solved
I thought when a view is touched or tapped on, its handler get called first, and then its superview's handler is called (propagate upward).
But is it true that if the superview's userInteractionEn...
Felon asked 4/6, 2012 at 11:57
3
Solved
I have a view with keyboard notifications such as keyboardWillShow and keyboardWillHide
All the codes handles with the notification I use is taken from Apple's sample code "KeyboardAccessory"
Whe...
Beverleebeverley asked 10/11, 2011 at 16:4
2
Solved
I am trying to implement a search bar in a UICollectionView as a UICollectionViewReusableView
This way I am not using a UISearchController but I am changing the datasource of the collectionview
I...
Hardtop asked 28/6, 2015 at 10:37
5
Solved
I'm trying to achieve similar positioning behavior as the bottom text input bar in Apple's Messages app.
I have tried many approaches, searched high and low and there are many similar questions bu...
Hygrograph asked 4/11, 2013 at 8:53
5
Solved
I'm attempting to trigger an event in a subview of a UITableViewCell, and let it bubble up the responder chain and be handled by a custom UITableViewCell subclass.
Basically:
SomeView.m (which i...
Bedivere asked 24/1, 2014 at 7:30
1
Solved
How does spotify handle custom remote events? Currently on iPhone 6 running iOS 8.1.3 and spotify version 2.4.0.1822 I get the following controls on the lock screen when I turn on spotify radio. Iv...
Feathercut asked 23/2, 2015 at 15:56
1 Next >
© 2022 - 2024 — McMap. All rights reserved.