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

mkristain

macrumors regular
Original poster
Aug 18, 2011
115
0
i want move scroll down when image is inserted to display the currently inserted image.

i m using this but it not works.

Code:
- (void) addImageWithPath:(NSString *) path
{   
    MyImageObject *item;
    
    NSString *filename = [path lastPathComponent];
	
	/* skip '.*' */ 
	if([filename length] > 0){
		char *ch = (char*) [filename UTF8String];
		
		if(ch)
			if(ch[0] == '.')
				return;
	}
	
	item = [[MyImageObject alloc] init];	
	[item setPath:path];
	[images addObject:item];
	[item release];
	
	[imageBrowser reloadData];
	
	[imageBrowser scrollIndexToVisible:[images count]];
	
}
please help me how can i do this.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.