Search code examples
iphoneios6uitableviewuikit

Stop cell from being dragged out of UITableView bounds


I have a UIVIew on which I loaded a UITableView as subview. The tableView is exactly the height of all it's rows(4 of them) heights sumised, about half the height of the main view.

The problem is that when I drag a row to move it I am able to drag beyond the bounds of the table and this cuts my cell's view (I am only able to see the part that is still in the table's bounds). Is there a property I can change to stop the cell from being dragable out of the table's bounds?


Solution

  • you can do this like below..

    [yourtableview setBounces:NO];
    

    let me know it is working or not!!!!

    Happy Coding!!!