iphone - uitableview section headings going under nav bar when translucent on iOS3 only -


i have pretty same issue uitableview scrolling under navigation bar posting new question have more specifics.

i have full screen table (with sections) on page black translucent navigation bar. within uiviewcontroller have views overlaid on top table created programatically thus;

- (void)viewdidload {    [super viewdidload];     self.navigationcontroller.navigationbar.barstyle = uibarstyleblack;    self.navigationcontroller.navigationbar.tintcolor = nil;    self.navigationcontroller.navigationbar.translucent = yes;     tableview = [[uitableview alloc] initwithframe:[[uiscreen mainscreen] bounds] style:uitableviewstyleplain];    tableview.delegate = self;    tableview.datasource = self;    [tableview setcontentinset:uiedgeinsetsmake(44,0,0,0)];     [self.view addsubview:tableview];    [tableview release]; } 

my problem although works on ios4 - in section headings butt bottom of translucent tableview scroll, on ios3 headings butt bottom of status bar instead :(

if set translucent property no, , remove contentinset, works identically , correctly in both operating systems.

other this, behavior correct, want contents of table scroll behind translucent navigation bar want section headings stop beneath nav bar visible.

is should work same ios3 , ios4? ideas might doing wrong?

thanks roger

try setting frame frame of tableview self.view.bounds

my guess [[uiscreen mainscreen] bounds] 480 pixels high (with status bar).

p.s. option try setting self.wantfullscreenlayout = no;


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -