Question

ScrollToView

I have a tableview(highlighted in red rectangle) that will show only 3 rows at a time, now if i have the rows more than three, then i want to notify user to scroll down the tableview to view the rest of row.

In windows we will have a physical scroll bar on the right side, but in iPhone, showing scroll bar all the time is not possible.

Can any one tell me what is the best way to notify the user to scroll when we have more row to size.

Any help will be highly appreciated

Was it helpful?

Solution

The best solution is to make the height not a multiple of the row height.

if rowheight = 44; then tableheight = 110; or tableheight = 154; , this will show if there is a visible half row, which will lead the user to scroll.

OTHER TIPS

In my opinion, you should not worry about notifying this to user. Any iOS user will understand that they can scroll it. Still if you want you can use:

scrollView.showsVerticalScrollIndicator = YES.

Also you can see: http://www.developers-life.com/scrollview-with-scrolls-indicators-which-are-shown-all-the-time.html

I don't recommend this kind of UX for an iOS app. You should remember that the recommended area of touch are 40*40px. However, a common practise (you can see it on the App Store app) it's to make the UITableView big enough so it can hold 3 and half cells, so the user get the hint there is more.

Add your table on UIScrollView then you can show vertical indicator of scroll view.

yourScrollView.showsVerticalScrollIndicator = YES.

You can make scroll indicators visible

tableView.showsVerticalScrollIndicator = YES;

Or "flash" them

[tableView flashScrollIndicators];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top