Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hemalimojidra

macrumors newbie
Original poster
Nov 7, 2008
24
0
Hello Friends..
I don't understand that how can i scroll many images in my iPhone..
Any one here who have perform with scrolling effect. Please surges me.
 

hemalimojidra

macrumors newbie
Original poster
Nov 7, 2008
24
0
UIScrollView Have UIScrollView as subView

Sounds like you want either UIScrollView or UIImagePickerController (https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIKit_Framework/index.html).

The "Scrolling" sample code shows how scrolling might be implemented: http://developer.apple.com/iphone/library/samplecode/Scrolling/index.html.


Thank you dear..i got that...
This tutorial is also nice..http://www.vimeo.com/1642150...

Now i want scrollView inside scrollView..or say UIScrollView Have suvView UIScrollView..Can it Passibale...

I am working on that now...
I got that..But scroll Possibal only in on View..


//
// Test1AppDelegate.m
// Test1
//
// Created by System Administrator on 11/19/08.
// Copyright __MyCompanyName__ 2008. All rights reserved.
//

#import "Test1AppDelegate.h"
#import "Test1ViewController.h"

@implementation Test1AppDelegate

@synthesize window;
@synthesize viewController;


- (void)applicationDidFinishLaunching:(UIApplication *)application {

// Override point for customization after app launch

UIScrollView *scroll = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 10, 300, 200)];
[scroll setBackgroundColor:[UIColor blueColor]];



UIScrollView *scroll1 = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 10, 100, 100)];
UIImageView *temp = [[UIImageView alloc] initWithImage:[UIImage imageNamed:mad:"image1.jpg"]];
scroll1.contentSize = CGSizeMake(200 , 200);
[scroll1 addSubview:temp];

UIScrollView *scroll2 = [[UIScrollView alloc] initWithFrame:CGRectMake(150, 10, 100, 100)];
UIImageView *temp1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:mad:"image1.jpg"]];
//temp1.frame = CGRectMake(400 , 0, 500, 200);
scroll2.contentSize = CGSizeMake(200 , 200);
[scroll2 addSubview:temp1];

scroll.contentSize = CGSizeMake(600 , 200);

[scroll addSubview:scroll1];
[scroll addSubview:scroll2];

[window addSubview:scroll];
[window makeKeyAndVisible];
}


- (void)dealloc {
[viewController release];
[window release];
[super dealloc];
}


@end

Here i can get scroll in only one View Scroll....


and..
IF...


//
// Test1AppDelegate.m
// Test1
//
// Created by System Administrator on 11/19/08.
// Copyright __MyCompanyName__ 2008. All rights reserved.
//

#import "Test1AppDelegate.h"
#import "Test1ViewController.h"

@implementation Test1AppDelegate

@synthesize window;
@synthesize viewController;


- (void)applicationDidFinishLaunching:(UIApplication *)application {

// Override point for customization after app launch

UIScrollView *scroll = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 10, 300, 200)];
[scroll setBackgroundColor:[UIColor blueColor]];



UIScrollView *scroll1 = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 10, 100, 100)];
UIImageView *temp = [[UIImageView alloc] initWithImage:[UIImage imageNamed:mad:"image1.jpg"]];
scroll1.contentSize = CGSizeMake(200 , 200);
[scroll1 addSubview:temp];

UIScrollView *scroll2 = [[UIScrollView alloc] initWithFrame:CGRectMake(150, 10, 100, 100)];
UIImageView *temp1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:mad:"image1.jpg"]];
//temp1.frame = CGRectMake(400 , 0, 500, 200);
scroll2.contentSize = CGSizeMake(200 , 200);
[scroll2 addSubview:temp1];

//scroll.contentSize = CGSizeMake(600 , 200);

[scroll addSubview:scroll1];
[scroll addSubview:scroll2];

[window addSubview:scroll];
[window makeKeyAndVisible];
}


- (void)dealloc {
[viewController release];
[window release];
[super dealloc];
}


@end



Here i can get scroll in two SubViews...Scroll1 and Scroll2....


I want that....Is it Possible...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.