I have a UITableViewCell and I want to remove the gray line on the top of it. How can I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For me, it seems to be a problem with the image tiling. I’m tiling a 320×480 image and there is a gray line at the break at the top as well as 480 pixels from the top. I’m setting my background like this:
self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@”mybackground.png”]];
Cropping the image seemed to remove the gray line so I think it had something to do with the image itself.