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-19-2010, 03:21 AM   #26 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 4
nudibranch is on a distinguished road
Default

Quote:
Originally Posted by mr tickle View Post
to go into how you position the UIViews inside the scrollview, thats the nifty part

you have 2 for loops

for(int rows=0; rows<=10; rows++){
for(int cols=0; cols<=1; cols++)
{
// here you calculate the x and y coordinates of the UIViews position using the values rows and cols with some simple addition and multiplication based on the size of the thumbnails
}
}

it means that each time rows runs 1 time
cols will run twice, so you can change that and have 3 images per row

where cols would be cols<=2 inside the for loop (that means it will go in sequence 0,1,2)
Question: Where in the code below would this code fit? I am trying to get 4 columns. Thanks .
http://www.de-clunk.com/demoScrollerFulview.zip
nudibranch is offline   Reply With Quote
Reply

Bookmarks

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: 326
5 members and 321 guests
2Apps1Day, akacaj, SLIC, soohyun, Techgirl-52
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,650
Threads: 94,115
Posts: 402,887
Top Poster: BrianSlick (7,990)
Welcome to our newest member, soohyun
Powered by vBadvanced CMPS v3.1.0

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