UIScrollView Based Image gallery getting white gap at the top of the image
UIScrollView Based Image gallery getting white gap at the top of the image , the image gets pushed down a bit . How can I remove the white space ? 

    @implementation PagerViewController
    
    - (void) setImages:(NSArray *) images
    {
    	if(imageSet) [imageSet release];
    	
    	imageSet = [images retain];
    	
    	view1.frame = CGRectMake(0,0,320,480);
    	view2.frame = CGRectMake(320,0,320,480);
    	
    	view1.image = [imageSet objectAtIndex:0];
    	view2.image = [imageSet objectAtIndex:1];
    	
    	scroll.contentSize = CGSizeMake([imageSet count]*320,480);
    }
    
    - (id) init
    {
    	if(self = [super init])
    	{
    		scroll = [[UIScrollView alloc] init];
    		scroll.scrollEnabled = YES;
    		scroll.pagingEnabled = YES;
    		scroll.directionalLockEnabled = YES;
    		scroll.showsVerticalScrollIndicator = NO;
    		scroll.showsHorizontalScrollIndicator = NO;
    		scroll.delegate = self;
    		scroll.backgroundColor = [UIColor clearColor];
    		scroll.autoresizesSubviews = YES;
    		scroll.frame = CGRectMake(0,0,320,480);
    		[self.view addSubview:scroll];
    		
    		view1 = [[UIImageView alloc] init];
    		[scroll addSubview:view1];
    		
    		view2 = [[UIImageView alloc] init];
    		[scroll addSubview:view2];
    	}
    	
    	return self;
    }
    
    - (void) update
    {
    	CGFloat pageWidth =320;
    	float currPos = scroll.contentOffset.x;
    	
    	int selectedPage = roundf(currPos / pageWidth);
    	
    	float truePosition = selectedPage*pageWidth;
    	
    	int zone = selectedPage % 2;
    	
    	BOOL view1Active = zone == 0;
    	
    	UIImageView *nextView = view1Active ? view2 : view1;
    	
    	int nextpage = truePosition > currPos ? selectedPage-1 : selectedPage+1;
    	
    	if(nextpage >= 0 && nextpage < [imageSet count])
    	{
    		if((view1Active && nextpage == view1Index) || (!view1Active && nextpage == view2Index)) return;
    		
    		NSLog(@"Load next image!");
    		
    		nextView.frame = CGRectMake(nextpage*320,0,320,480);
    		nextView.image = [imageSet objectAtIndex:nextpage];
    		
    		if(view1Active) view1Index = nextpage;
    		else view2Index = nextpage;
    	}
    }


UIScrollView Based Image gallery getting white gap at the top of the image
===

UIScrollView Based Image gallery getting white gap at the top of the image , the image gets pushed down a bit . How can I remove the white space ? 

    @implementation PagerViewController
    
    - (void) setImages:(NSArray *) images
    {
    	if(imageSet) [imageSet release];
    	
    	imageSet = [images retain];
    	
    	view1.frame = CGRectMake(0,0,320,480);
    	view2.frame = CGRectMake(320,0,320,480);
    	
    	view1.image = [imageSet objectAtIndex:0];
    	view2.image = [imageSet objectAtIndex:1];
    	
    	scroll.contentSize = CGSizeMake([imageSet count]*320,480);
    }
    
    - (id) init
    {
    	if(self = [super init])
    	{
    		scroll = [[UIScrollView alloc] init];
    		scroll.scrollEnabled = YES;
    		scroll.pagingEnabled = YES;
    		scroll.directionalLockEnabled = YES;
    		scroll.showsVerticalScrollIndicator = NO;
    		scroll.showsHorizontalScrollIndicator = NO;
    		scroll.delegate = self;
    		scroll.backgroundColor = [UIColor clearColor];
    		scroll.autoresizesSubviews = YES;
    		scroll.frame = CGRectMake(0,0,320,480);
    		[self.view addSubview:scroll];
    		
    		view1 = [[UIImageView alloc] init];
    		[scroll addSubview:view1];
    		
    		view2 = [[UIImageView alloc] init];
    		[scroll addSubview:view2];
    	}
    	
    	return self;
    }
    
    - (void) update
    {
    	CGFloat pageWidth =320;
    	float currPos = scroll.contentOffset.x;
    	
    	int selectedPage = roundf(currPos / pageWidth);
    	
    	float truePosition = selectedPage*pageWidth;
    	
    	int zone = selectedPage % 2;
    	
    	BOOL view1Active = zone == 0;
    	
    	UIImageView *nextView = view1Active ? view2 : view1;
    	
    	int nextpage = truePosition > currPos ? selectedPage-1 : selectedPage+1;
    	
    	if(nextpage >= 0 && nextpage < [imageSet count])
    	{
    		if((view1Active && nextpage == view1Index) || (!view1Active && nextpage == view2Index)) return;
    		
    		NSLog(@"Load next image!");
    		
    		nextView.frame = CGRectMake(nextpage*320,0,320,480);
    		nextView.image = [imageSet objectAtIndex:nextpage];
    		
    		if(view1Active) view1Index = nextpage;
    		else view2Index = nextpage;
    	}
    }

