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 05-27-2011, 08:00 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Belfast, Northern Ireland
Posts: 36
materialised is on a distinguished road
Send a message via AIM to materialised Send a message via MSN to materialised Send a message via Yahoo to materialised
Angry UIScrollView Issues - Pulling my hair out

Hi all,

I have an issue and I am really pulling my hair out with it.

I have a UIView containing UIScrollView and 2 buttons, which when my application is first ran, occupies a space at the bottom of the UIViewController,
One of these buttons expands the view, and the other collapses it again.

My issue is, that even though I am hard coding 100 items, when I expand the custom view the UIScrollView does not render all of the items.


The above image shows the custom view in the collapsed state


The above image shows the view in the expanded state.


The above image shows the issue I described in which all items are not being rendered to the UI scroll view.

I have created a simple example project that illustrates my problems, it is available to download from http://dl.dropbox.com/u/9930498/ScrollViewTest.zip

If anyone can help me I would be most grateful.

Many Thanks
materialised is offline   Reply With Quote
Old 05-28-2011, 02:27 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

the link to the code doesn't work for me...
__________________
dany_dev is offline   Reply With Quote
Old 05-29-2011, 12:31 AM   #3 (permalink)
Just Some Guy
 
Join Date: Dec 2010
Posts: 112
UnretroGamer is on a distinguished road
Default

Quote:
Originally Posted by materialised View Post
Hi all,

I have an issue and I am really pulling my hair out with it.

I have a UIView containing UIScrollView and 2 buttons, which when my application is first ran, occupies a space at the bottom of the UIViewController,
One of these buttons expands the view, and the other collapses it again.

My issue is, that even though I am hard coding 100 items, when I expand the custom view the UIScrollView does not render all of the items.

<img>
The above image shows the custom view in the collapsed state

<img>
The above image shows the view in the expanded state.

<img>
The above image shows the issue I described in which all items are not being rendered to the UI scroll view.

I have created a simple example project that illustrates my problems, it is available to download from http://dl.dropbox.com/u/9930498/ScrollViewTest.zip

If anyone can help me I would be most grateful.

Many Thanks
I'm not completely clear on what you're describing but have you thought of setting the content size of the scrollview once it's expanded?

Code:
[<UIScrollView> setContentSize:<CGSize>];
This sets the rectangle you scroll around, not the size of the scroll view. The scroll view is like a window showing you a section of the bigger rectangle.

In case you don't know. You can create a CGSize the same way you create a point:

Code:
CGSize *size = CGSizeMake(<CGFloat width>, <CGFloat height>);
- Jehanlos
UnretroGamer is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone, uiscrollview

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: 345
6 members and 339 guests
doffing81, dre, iOS.Lover, jenniead38, Kirkout, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

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