The beta version of iOS 5 has an API that allows you to do this. Since it has not yet been released, all I am going to say. Find it, and then ask questions http://devforums.apple.com (or wait for iOS 5 to be released this fall).
Another option is to report a very large number of rows (for example, 100000) to a UITableView , and then quietly adjust the scroll location of the table when it stops scrolling. ( [tableView scrollToRowAtIndexPath:anIndexPath animated:NO]; ) You may have trouble maintaining the exact location of the scroll, but you might be able to get around this, possibly using setContentOffset:animated: :? I'm not quite sure; I have to try.
In practice, however, this usually works. For example, in this way, the UIDatePicker achieves its “endless” scrolling when displaying dates. However, the limitations of placing rows on a UIDatePicker are different from what they are on a UITableView , but the principle is the same ...
source share