ios - IOS9 beta shows a partially hidden SearchBar above the tableview -


i have question default hiding searchbar in tableview's tableheaderview within ios9 beta. shows tableview partially hidden searchbar in ios9 beta. know ios9 still in beta want know if missing here.

in ios 7 , 8 following code works perfect (as pointed out here many times on stackoverflow). default, hides searchbar when opening tableview.

-(void)initfields {   nsstring *strsearch = [[nsstring alloc] initwithformat:@"%@%@", nslocalizedstring(@"search", nil), @"..."];    uisearchbar *objsearchbar = [[uisearchbar alloc]initwithframe:cgrectmake(0, 0, 320, 44)];   objsearchbar.placeholder = strsearch;   objsearchbar.barstyle=uibarstyledefault;   objsearchbar.showscancelbutton=no;   objsearchbar.autocorrectiontype=uitextautocorrectiontypeno;   objsearchbar.autocapitalizationtype=uitextautocapitalizationtypenone;   objsearchbar.delegate = self;    self.searchbar = objsearchbar;   self.searchbar.text = self.carfilter;    self.tableview.tableheaderview = self.searchbar; }  -(void)initlayout {   [self.tableview setcontentoffset:cgpointmake(0, 44) animated:no]; } 

in case first call initfields function followed initlayout function. cannot figure out why in ios9 beta searchbar partially hidden above tableview. have tried different offsets render searchbar partially.

any advice appreciated.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -