0

I follow Apple tutorial to make a simple app using table (as in the below image).

The red area height is 8 point. Why is touching the red area does not select first row ("Buy milk")?

Is it expected or is it a bug? How to fix?

Image

Community
  • 1
  • 1
a developer
  • 149
  • 2
  • 10

2 Answers2

0

It is not TableView Cell's area, that is why it is not detecting it. You can test it by assigning a background color to the cell of tableview, and then see what is the area of tableview

Munahil
  • 2,381
  • 1
  • 14
  • 24
  • I have tried what you suggest. Change background colour of cell. The red area colour is same as cell's background colour and still the touch cannot be detected. – a developer Jul 30 '15 at 06:50
  • Probably, "To-Do List" header comes over it, so it does not detect the touch – Munahil Jul 30 '15 at 06:54
  • Can you please elaborate it? If something comes over the cell, should the red area have different colour than cell's colour? But in this case, it has the same colour. – a developer Jul 30 '15 at 06:58
  • Can you give color to your cells and show me the image? – Munahil Jul 30 '15 at 07:00
0

You may return for each cell of UITableView header section. You can show the implementation of this method?

-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section