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-24-2011, 06:11 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 27
Kaisser74 is on a distinguished road
Default How to make a horizontall scroll with images. Slideshow, coverflow,...etc

Hello everyone.

I would like to make a slideshow of images.

A very simple app that shows a collection of images.

I ask Google, but I only found a complex/difficult examples.

I only want to move images from left to right and from right to left.

Someone can help me?

Thanks.
Kaisser74 is offline   Reply With Quote
Old 05-24-2011, 06:13 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

this example from apple show how to use a UIScrollView paged...ScrollViewSuite

for coverflow you can use TapKu Coverflow or iCarousel
__________________
dany_dev is offline   Reply With Quote
Old 05-27-2011, 02:21 AM   #3 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 27
Kaisser74 is on a distinguished road
Default

Quote:
Originally Posted by dany_dev View Post
this example from apple show how to use a UIScrollView paged...ScrollViewSuite

for coverflow you can use TapKu Coverflow or iCarousel
I am trying to change the size of images in this example:

ScrollViewSuite…

In the third project, "Tiling", in the method:

- (void)createThumbScrollViewIfNecessary {

if (!thumbScrollView) {

float scrollViewHeight = THUMB_HEIGHT + THUMB_V_PADDING;
float scrollViewWidth = [[self view] bounds].size.width;
thumbScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, scrollViewWidth, scrollViewHeight)];
[thumbScrollView setBackgroundColor:nil];
[thumbScrollView setCanCancelContentTouches:NO];
[thumbScrollView setClipsToBounds:NO];

// now place all the thumb views as subviews of the scroll view
// and in the course of doing so calculate the content width
float xPosition = THUMB_H_PADDING;
for (NSDictionary *imageDict in [self imageData]) {
NSString *name = [imageDict valueForKey:@"name"];
UIImage *thumbImage = [UIImage imageNamed:[NSString stringWithFormat:@"%@_thumb.png", name]];
if (thumbImage) {
ThumbImageView *thumbView = [[ThumbImageView alloc] initWithImage:thumbImage];
[thumbView setDelegate:self];
[thumbView setImageName:name];
[thumbView setImageSize:CGSizeMake([[imageDict valueForKey:@"width"] floatValue], [[imageDict valueForKey:@"height"] floatValue])];
CGRect frame = [thumbView frame];
frame.origin.y = THUMB_V_PADDING;
frame.origin.x = xPosition;
[thumbView setFrame:frame];
[thumbView setHome:frame];
[thumbScrollView addSubview:thumbView];
[thumbView release];
xPosition += (frame.size.width + THUMB_H_PADDING);
}
}
[thumbScrollView setContentSize:CGSizeMake(xPosition, scrollViewHeight)];
}
}

I want to change the size of the thumbnails.
I can change the size of the "thumbScrollView" "control", but the images are bigger than the control.


Can anyone try to do it??

Itīs very important.

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

from the code posted, seem that you need to change the values of
THUMB_HEIGHT
[imageDict valueForKey:@"width"]
[imageDict valueForKey:@"height"]
__________________
dany_dev is offline   Reply With Quote
Old 05-27-2011, 03:17 AM   #5 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 27
Kaisser74 is on a distinguished road
Default

Hi again.

THUMB_HEIGHT is for the UIScrollView and if the images are bigger than the UIscrollView, the images will not resized

I donīt know the size of the images that I will show, I must resize the images.

Thanks.
Kaisser74 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: 358
7 members and 351 guests
doffing81, dre, iOS.Lover, jenniead38, Kirkout, PlutoPrime, 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:08 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0