UITableViewCell – Remove the border

Filed in iOS

In order to remove the border of a UITableViewCell, set it’s background view to the following:

UITableCiewCell *topCell = [self.tableView cellForRowAtIndexPath: [NSIndexPath indexPathForItem:0 inSection:0]];
topcell.backgroundView = [[UIView alloc] initWithFrame:CGRectZero];

It took me a little while to find this answer, so I thought I’d post it just in case anybody else needed it.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

WordPress database error Table '27178_beckerswebsite.wp_formbuilder_pages' doesn't exist for query SELECT * FROM wp_formbuilder_pages made by require('E:\inetpub\vhosts\beckerwebsite.com\httpdocs\wp-blog-header.php'), require_once('E:\inetpub\vhosts\beckerwebsite.com\httpdocs\wp-includes\template-loader.php'), do_action('template_redirect'), call_user_func_array, formbuilder_init, fb_is_active