Fixed keyboard inside a UIView
Asked Answered
C

2

1

Is there a way to include a keyboard inside of a view? I want it to be part of the view and not be dismissed as well.

Birdfeedapp does this in it's 'add account' modal view.

Concession answered 9/7, 2009 at 10:18 Comment(0)
T
2

Simply just add this code to your view. This will show the keyboard:

-(void) viewDidAppear:(BOOL)animated{
   [super viewDidAppear:animated];
   [YOURTEXTVIEW becomeFirstResponder];
}
Theresa answered 9/7, 2009 at 11:29 Comment(1)
My problem is, I am creating the textField and adding it to a tableView during the cellForRowAtIndexPath method. So the textfield is not available at viewWillAppear.Concession
T
0

Either make a text field as the first responder and keep it the first responder or create your own keyboard.

Tunnel answered 9/7, 2009 at 11:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.