Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I am guessing that you are using the default table headers with some transparency / translucency (similar to the contacts app) and so the bottom of the first row shows through there.</p> <p>Have a look at the documentation for UITableViewDelegate method <a href="http://developer.apple.com/iPhone/library/documentation/UIKit/Reference/UITableViewDelegate_Protocol/Reference/Reference.html#//apple_ref/doc/uid/TP40006942-CH3-SW3" rel="nofollow noreferrer">tableView:viewForHeaderInSection</a>, and then you can implement that method in your tableView's delegate. Send it a view with a non-translucent (or transparent) background, and it should prevent the top row from showing through. </p> <p>To get started, I'd have it return a custom-sized UILabel directly with a solid white background and make sure it works as it should (because I haven't tested this:)</p> <pre> <code> // you'd probably need to fill in the frame sizes yourself // so try something other than CGRectZero at first. // for example (10,2,320,30) to start, then go from there #define X 10 #define Y 2 #define WIDTH 320 #define HEIGHT 30 -(UIView*)tableView:(UITableView*)tableView viewForHeaderInSection:(NSInteger)section { UILabel *sectionHeader = [[UILabel alloc] initWithFrame:CGRectMake(X,Y,WIDTH,HEIGHT)]; sectionHeader.text = [NSString stringWithFormat:@"Section %d",section]; sectionHeader.background = [UIColor whiteColor]; return [sectionHeader autorelease]; } </code> </pre> <p>Assuming that works and looks like progress, you'll probably want to compose a custom view return that as a next step.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload