Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-03-2008, 08:09 AM   #10 (permalink)
jonc
Registered Member
 
Join Date: Apr 2008
Location: Colorado
Posts: 313
Send a message via AIM to jonc
Default Re: Keyboard hides text field - how do I fix this?

Quote:
Originally Posted by martinn
I have the same problem with a tableview, the keyboard hides all my textfields when popping up. When editing a mail-account in settings on the iPhone apple have the same problem, they solve it by making it possible to scroll the view over the keyboard when the keyboard popup. But when I try the same I cant scroll to the textfield at the bottom, they are still hidden behind the keyboard. How can I solve this? If you don't understand what I mean, check settings -> mail -> and then edit one of your accounts.
Use the code bit I mentioned above to adjust the frame of your table view, but since it is a table view leave origin.y alone and just shrink the size.height enough to account for the height of the keyboard. You will then need to check the table view documentation on how to make the table view scroll to the cell you want because changing the frame will leave a different cell in the middle. You will then want to increase the size.height of the table view when done.

I spent about a week tweaking this behavior and getting it to work right with a table view so don't expect any miracles. Good luck.
jonc is offline   Reply With Quote
 

» Advertisements
» Online Users: 737
18 members and 719 guests
adivoget15, aniuco, AppAnnex, bobli, chits12345, chrisfromnz, dana0550, Dani77, deepak.hws, Domele, handmachine, Harisstimolth5, iSkythe, JamesCahall, k2c, learningtocode, Relwakbanzela, salehamahbub
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,794
Threads: 89,205
Posts: 380,608
Top Poster: BrianSlick (7,129)
Welcome to our newest member, adivoget15
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:45 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.