i want to fix my table view while i am scrolling [closed]
开发者_如何学C
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this questionwhile i am scrolling my table view gets moving upwards .. i hav created table view programmatically without using IB so i should able to fix the position of table view while scrolling also... how to do this.. any suggestions appreciated..
Do you mean you dont want the table to scroll at all? If so then this should do it.
tableView.scrollEnabled = NO;
Are you embedding a UITableView in a UIScrollView? It sounds like it. Don't. UITableView is already a subclass of UIScrollView and supports scrolling on its own.
精彩评论