Reputation: 8357
I am doing an app which has a settings scene with UITableView, and I am trying to make that UITableView.
My problem is that, I have an editing cell that's extra large, and when the user tapped on one of the UITextField, the keyboard showed up and block everything!
Is there anyway to scroll the TableView further down even though there's nothing to scroll?
Or is the only way to do this is to mess with its size, if so, how can I get the height of the screen of the device and keyboard, and how to change the size? (the only thing i remember is something rectangle....)
Upvotes: 0
Views: 309
Reputation: 7963
Give UITableView
in a scrollView.
Try to design search bar at the top of the window
Upvotes: 0
Reputation: 13180
yes , just set your tableview size by reducing the keyboard height , and it would be good idea. just reduce keyboard height , is is 226.0 for iphone from your tableview height and set normal height again when keyboard goes disappear.
or you can keyboard height by
NSValue* aValue = [info objectForKey:UIKeyboardBoundsUserInfoKey];
CGSize keyboardSize = [aValue CGRectValue].size;
float keyboardHeight = keyboardSize.height;
Upvotes: 1