UIScrollView Have UIScrollView as subView
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
"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
"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
"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
"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...