I’d like to be able to specify the offset or more specifically the cell I consider the “top” of my UITableView when the status bar is pressed and the ScrollToTop occurs.
To give this question a bit of context, its an app that plays music and the table view is the playlist. I’d like that when the user taps the status bar, it scrolls back to the current song, rather than continues scrolling past it into the previously played, grayed out songs. Whilst I agree which not changing default behavior, I think that this would be the expected behavior for a user in this scenario, and several people i’ve asked agree with me. As to whether its possible is a different story.
You cannot modify the position directly, but you can implement the
scrollViewShouldScrollToTop:delegate method to manually scroll to the appropriate position and then returnNOto prevent the default behaviour.