clicking/typing on UITextField increments UIPageViewController instead of displaying keyboard - iphone

I'm using UIPageViewController to show View Controllers that are on my storyboard on the screen, when I put a UITextField on the view controller that I've put on the UIPageViewController and when I run te app and I click on the UITextField, the screen jumps to the next screen instead of just popping up the keyboard or when you type something in the UITextField, it also jumps to the next screen. I've made a simple sample project which you can download here: http://www.2shared.com/file/VNF3DO-g/pageScroll.html use iPhone simulator and click on the UITextField and you'll see it will jump to the next view instead of popping up the keyboard.

Related

How to create a keyboard that sticks to the view during transition like in Snapchat?

In Snapchat and also FB Messenger the keyboard is not automatically dismissed but sticks to the old VC during transition. I'm using a PageViewController and would like to have the keyboard stay open when the user transitions to new VC.
Here's a sample project that illustrates the default behaviour: the keyboard is dismissed and protrudes into the new VC during transition. Ideally the keyboard is not dismissed and stays within the view of the first VC.
Default Apple transition:

Keep UITextField as first responder when pushing new view controller

Is there any way to keep a UITextField first responder even as I push another view controller?
Essentially, I'm taking a screenshot of the screen, using that screenshot in the new view controller, and then popping the second view controller. The issue, though, is that it isn't a smooth transition; when the view controller pops, the keyboard in the picture disappears (since the picture was in the second view controller but has since been popped), but the actual keyboard hasn't reappeared yet. You see the keyboard sliding up just after the picture disappears. Is there anyway to prevent this such that the keyboard is just always there?
I don't have any other UITextFields in the new view controller, only the screenshot, a UIButton, UIScrollView, and two UIGestureRecognizers.
Thanks in advance!

Keyboard won't appear in modal view controller

I have a UIWebView in a modal view controller (using SVModalViewController). In iOS 4.2, when I tap on an input text field, the keyboard does not appear. The view animation where the page scrolls to make room for the keyboard still happens, but nothing appears. It works fine in iOS 5.
I am calling [self.window makeKeyAndVisible] in the application delegate, so that is not the issue.
Any guidance would be very much appreciated!
Solution: I needed to make the view controller containing the UIWebView the first responder, and after that, it worked!

Hide Keyboard in a view that loads a differnt view

I am not able to hide the keyboard in my app.
My app has 2 view.., The first view loads the another view. But when I do resignFirstResponder.., nothing is working...
are you calling resignFirstResponder on a text component, like a UITextField or UITextView? Calling it on the containing view won't work.

Hiding UITabBar when displaying UIPickerView in iPhone SDK

I've got a view when I want to use UIPickerView but my application supports also UITabBar. I want to display UIPickerView in the same spot where keyboard pops up but the problem is that when I do that tab bar buttons are above picker and only half of it is beign displayed. Is is possible to temporary disable tab bar before I draw a picker and restore it when picker will disappear?
Can you show us how you're displaying the UIPickerView? I'll assume you're adding it as a subview to a view controller that is shown from a tab bar, and setting its frame so that it is positioned the same as the keyboard.
In that case, try adding the UIPickerView as a subview to the window, rather than the view controller's view:
[[[UIApplication sharedApplication] keyWindow] addSubview:myPickerView];
This should show it above all other views.
One likely caveat is that if a keyboard needs to be shown at any time while your pickerview is in place, the keyboard will show above your pickerview, hiding it until the keyboard is dismissed again.
What if you called
myTabBarController.tabBar.hidden = YES;
before showing this picker view?