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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-28-2011, 12:47 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Hyderabad
Posts: 11
dev4u is on a distinguished road
Send a message via Yahoo to dev4u Send a message via Skype™ to dev4u
Default UIView not scrolling down when keypad appear

Hi All,

I am new to this space. i am developing a page with Register form.

In register form, i have kept 10 UITextFileds. Keypad is appearing when user selects the textfield. when the keypad appearing its covering half of the screen because of that remaining textfields are not visible.when try to scroll down view also not scrolling down. i have worked out on hiding keypad when user selects the view.
But what i really required is scrolling down the view when keypad is active.

Please help me in scrolling down the view when keypad appear.

Thanks

Last edited by dev4u; 02-28-2011 at 01:00 AM.
dev4u is offline   Reply With Quote
Old 02-28-2011, 01:07 AM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

UIViews don't scroll. You need to use UIScrollView for that, and they don't scroll automatically either. You'll need to code it yourself. Do a quick google search for "UIScrollView keyboard show" and you'll find plenty of examples.
baja_yu is offline   Reply With Quote
Old 02-28-2011, 04:58 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Hyderabad
Posts: 11
dev4u is on a distinguished road
Send a message via Yahoo to dev4u Send a message via Skype™ to dev4u
Default

Quote:
Originally Posted by baja_yu View Post
UIViews don't scroll. You need to use UIScrollView for that, and they don't scroll automatically either. You'll need to code it yourself. Do a quick google search for "UIScrollView keyboard show" and you'll find plenty of examples.
thanks for ur time
dev4u is offline   Reply With Quote
Old 02-28-2011, 05:24 AM   #4 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Hyderabad
Posts: 11
dev4u is on a distinguished road
Send a message via Yahoo to dev4u Send a message via Skype™ to dev4u
Default

Quote:
Originally Posted by baja_yu View Post
UIViews don't scroll. You need to use UIScrollView for that, and they don't scroll automatically either. You'll need to code it yourself. Do a quick google search for "UIScrollView keyboard show" and you'll find plenty of examples.
Another thing, as i am having 3 text fields name, email and mobile on registration form.

i had set all properties for textfields like
Quote:
nameTextField.keyboardType = UIKeyboardTypeDefault;
nameTextField.placeholder = @"enter username";
the above properties are different for above 3 fields,so we need to declare the properties separately.

But there are some properties common to all the 3 fields like

Quote:
nameTextField.returnKeyType = UIReturnKeyJoin;
nameTextField.clearButtonMode = UITextFieldViewModeWhileEditing;
nameTextField.delegate = self;
Do we need to repeat the above common properties separately for other textfields also?

Is there anyway we can declare commonly for entire section or view rather than setting individually repeating for each textfield?
dev4u is offline   Reply With Quote
Reply

Bookmarks

Tags
keyboard, keypad, uiview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 367
18 members and 349 guests
Absentia, akphyo, apatsufas, BinHex, cpsclicker, dre, Error404, Gaz, gmarro, jeroenkeij, Kirkout, MarkC, mottdog, Music Man, PavelMik, teebee74, whitey99, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,666
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, cpsclicker
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:17 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0