in my application i have a table view and a segment with three buttons,
each button action populates different arrays in the same table and reloads every time,
when i was in 3rd segment and when i scrolls the table filled with coresponding 3rd segment data,
and return bak to the 1st, 2nd segments wiht their respective data , the content on these other segments also scrolls,
My requirement is for each segment click table view, first cell set to top every time
I tried with setScrollToTop and setPagingEnable but no use,
[contactsTable setPagingEnabled:YES];
[contactsTable setScrollToTop:YES];
How to set the table view first cell always on top when segment clicked and when view appears, irrespective of previous step scrolling…?
try this,