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
Hi all,

i want to display currently inserting image in IKImageBrowserView so please tell me how can i scroll the NSScrollView to the bottom.

thanks.
 
Try sending scrollIndexToVisibile: to your IKImageBrowserView object with the index of the newly inserted image.
 
yes i already try this but its not working.

Code:
[imageBrowser scrollIndexToVisible:[images count]];

even after using this when i move down the vertical scroll bar to down its automatically move to up and show first visible item.
 
yes i already try this but its not working.

Code:
[imageBrowser scrollIndexToVisible:[images count]];

even after using this when i move down the vertical scroll bar to down its automatically move to up and show first visible item.

[image count] will not be a valid index. It's not the last index, but one off the last index.

Try
Code:
[imageBrowser scrollIndexToVisible:[images count] - 1];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.