i want scrolling in my 1000 photos in single view.

Discussion in 'iPhone/iPad Programming' started by hemalimojidra, Nov 18, 2008.

  1. macrumors newbie

    Joined:
    Nov 7, 2008
    #1
    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.
     
  2. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
  3. thread starter macrumors newbie

    Joined:
    Nov 7, 2008
    #3
    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: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...
     

Share This Page