I have no idea about showing black line while tap on header section in table view.
Kindly share some idea about to fix this issue.
Asked
Active
Viewed 525 times
1

rmaddy
- 314,917
- 42
- 532
- 579
-
Please show us at least an image of what it looks like. Its hard to help you without seeing anything. – Fabio Berger Aug 22 '17 at 07:29
-
Show your screen imges – dahiya_boy Aug 22 '17 at 07:29
-
check https://stackoverflow.com/questions/925115/is-there-a-way-to-remove-the-separator-line-from-a-uitableview – Abdelahad Darwish Aug 22 '17 at 07:31
-
For image : kindly tap on 'enter image description here link' – Aug 22 '17 at 07:32
-
Please post a full image of the screen at least the top portion, also try creating a custom header view from XIB and loading it. – Milan Agarwal Aug 22 '17 at 07:47
-
is not a separator are you added the any uicontrols in layer – Anbu.Karthik Aug 22 '17 at 07:49
-
Thanks to all guys. Issue has been fixed. – Aug 22 '17 at 09:44
3 Answers
4
Try this:
tableView.separatorStyle = .none

Arun sharma
- 642
- 1
- 7
- 17
-
-
-
-
Yes and while tap on section header and close section header then it shows the black line. First time, there is no issue. – Aug 22 '17 at 08:25
1
Set the following on your tableView object:
Swift:
tableView.separatorStyle = .none
Objective-C:
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

Johnny Rockex
- 4,136
- 3
- 35
- 55

Abdelahad Darwish
- 5,969
- 1
- 17
- 35
0
The black line is the separator you can remove it either from the storyBoard or through code
code self.tableView.separatorStyle = .none
or from storyBoard like

Aravind A R
- 2,674
- 1
- 15
- 25
-
-
-
-
Yes and while tap on section header and close section header then it shows the black line. First time, there is no issue. – Aug 22 '17 at 08:25
-