i want move scroll down when image is inserted to display the currently inserted image.
i m using this but it not works.
please help me how can i do this.
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]];
}