Re: UITextField in UITableView covered by keyboard
Re: UITextField in UITableView covered by keyboard
- Subject: Re: UITextField in UITableView covered by keyboard
- From: Bob Barnes <email@hidden>
- Date: Sat, 24 Oct 2009 15:29:29 -0700
Glenn,
So any thoughts why the UITableViewController isn't setting content
inset appropriately in this case? I think it's because the view has a
navigation bar and/or tab bar, but I haven't proven that yet.
Bob
On Oct 24, 2009, at 2:34 PM, glenn andreas wrote:
On Oct 24, 2009, at 4:31 PM, Henry McGilton (Boulevardier) wrote:
On Oct 23, 2009, at 10:29 AM, Bob Barnes wrote:
Hi all,
I posted this a yesterday, but it never appeared on the list and
it's not showing up in the web archive so I thought I'd retry.
I have a UITableView that contains some cells with UITextField's
embedded in them. When I touch the UITextField to begin editing the
keyboard pops up and obscures the the text field. I've been looking
at the UICatalog sample, which has a nearly identical setup and the
UITextField scrolls up to make itself visible, but I've been unable
to determine what it's doing to cause that. I've read suggestions on
scrolling the UITexField rect, resizing the UITableView, etc., but
UICatalog doesn't do any of that, yet still works. What am I
missing?
You may also have to consider the scenario where the Table View Cell
that contains the UITextField
is so close to the end of the Table View that it can not be scrolled
up out of the way. In the case, you
have to temporarily move the entire Table View upwards by adjusting
its frame origin . . .
Not at all - just set the content inset & scroll bar inset
appropriately (which is what UITableViewController does). Way more
easy than messing with frames (not to mention works correct - moving
the frame will result in the other end of the scrolling range not
being reachable).
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dangerous to Know
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden