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 12-05-2010, 12:17 PM   #1 (permalink)
Registered Member
 
franium's Avatar
 
Join Date: Nov 2010
Posts: 68
franium is on a distinguished road
Default uiscrollview: contentSize

Hi,

I have added an uitextfield and an uitextview to a scrollview. In order to make scroll the textfield together with the textview I have not enabled the scrolling in the textview.

I have different problems:

1.I don't understand the contentSize property of the scrollview. I need very clear examples;

2.I wish that when the textview is first responder, by inserting the second/third text line both the textfield and the textview begin to scroll. How could I do?

Thanks,

Fran
franium is offline   Reply With Quote
Old 12-05-2010, 12:28 PM   #2 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Frankfurt
Posts: 9
shadowJohnny is on a distinguished road
Default

Hi!

1. The contentSize of a ScrollView defines exactly what it says: the width and the height of your ScrollView content. E.g. if your ScrollView has a size of 320x480 and your contentSize has a size of 320x580, you can scroll 100px down in the ScrollView because the content is 100px higher than the frame.
shadowJohnny is offline   Reply With Quote
Old 12-05-2010, 01:28 PM   #3 (permalink)
Registered Member
 
franium's Avatar
 
Join Date: Nov 2010
Posts: 68
franium is on a distinguished road
Default

Quote:
Originally Posted by shadowJohnny View Post
Hi!

1. The contentSize of a ScrollView defines exactly what it says: the width and the height of your ScrollView content. E.g. if your ScrollView has a size of 320x480 and your contentSize has a size of 320x580, you can scroll 100px down in the ScrollView because the content is 100px higher than the frame.
I set the scrollview size in such way it contains both the textfield and the visible part of the textview, then I set the scrollview content size a little bit higher of the scrollview size. I succeed in seeing the scrollbar and it seems of the right size, but I can view only one line of the textview. There is a white part that covers the textview.
franium is offline   Reply With Quote
Reply

Bookmarks

Tags
ios, uiscrollview, uitextfield, uitextview

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: 386
6 members and 380 guests
chemistry, daudrizek, HemiMG, jeroenkeij, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

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