onur taskin
onur taskin

Reputation: 929

set scroll last UItableview cell

when I scroll position end of UItableview the last UItableview row seems half. how can I show the last row fully and how can I detect scroll to last row?

Upvotes: 1

Views: 3415

Answers (2)

Jake
Jake

Reputation: 3973

I think there is something (like a tabBar) at the bottom of your screen and it is overlapping the UITableView .. am I right, am I right?!

Just make the frame of the UITableView 48 pixels shorter. That's the average size of a tabBar..

Or perhaps you have not taken in account that the bar at the top (the status bar) also counts, which is about 15 pixels high. In that case, take 15 pixels of the height of your UITableView's frame.

Upvotes: 1

kennytm
kennytm

Reputation: 523284

I don't know what you mean by "seems half". I suppose that means only half of the cell is shown? Make sure the frame of the whole table view is visible first.

If you want a cell to appear within the bounds of the table view, use

[tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:? section:?]
                 atScrollPosition:UITableViewScrollPositionBottom animated:YES];

Upvotes: 2

Related Questions