Get rid of line above UITableView

不羁岁月 提交于 2019-12-06 06:16:07

In my case it helped to set:

    searchBar.clipsToBounds = YES;

You have to customise the UISearchBar background to match according to your requirements.,take a look at this tutorial.

You should try this, by which you can set the color of cell borders and if you want to change the color of a particular cell's border put it in condition as: if (indexPath.row == yourcell):

tableView.separatorColor = [UIColor blackColor];

Also the above method you have to put in CellForRowAtIndexPath method of table view datasource.

Please notify if it works..

This had to do with the pullToRefresh view I was using (using SensibleTableView) - it had some code in drawRect to draw the line.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!