INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
        cell.textLabel.font=[UIFont systemFontOfSize:20.0f];
    } else {
        cell.textLabel.font=[UIFont systemFontOfSize:15.0f];
    }
    cell.backgroundColor=[UIColor whiteColor];
    cell.selectionStyle=UITableViewCellSelectionStyleNone ;
}
cell.textLabel.textColor=[UIColor blackColor];

/********** Add a custom Separator with cell *******************/
UIView* separatorLineView = [[UIView alloc] initWithFrame:CGRectMake(15, 48, _availableOrdersTableView.frame.size.width-15, 1)];
separatorLineView.backgroundColor = [UIColor blackColor];
[cell.contentView addSubview:separatorLineView];

return cell;
}

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {

    UIView *sectionView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, _availableOrdersTableView.frame.size.width, 50)];
    sectionView.backgroundColor = [UIColor clearColor];
    sectionView.tag=section;
    UILabel *viewLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, _availableOrdersTableView.frame.size.width, sectionView.frame.size.height)];
    viewLabel.backgroundColor=[UIColor clearColor];
    viewLabel.textColor=[UIColor blackColor];
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
        viewLabel.font=[UIFont systemFontOfSize:25];
    } else {
        viewLabel.font=[UIFont systemFontOfSize:15];
    }
    viewLabel.text=[NSString stringWithFormat:@"%@", [_stateName objectAtIndex:section]];
    _stateIDString = [_stateID objectAtIndex:section];
    NSLog(@"stateIDString %@", _stateIDString);
    [sectionView addSubview:viewLabel];

    if (UI_USER_INTERFACE_IDI
INTERFACE_IDIOM () = = UIUserInterfaceIdiomPad) { 
         cell.textLabel.font=[UIFont systemFontOfSize:20.0f ]; 
     } else { 
         cell.textLabel.font=[UIFont systemFontOfSize:15.0f ]; 
     } 
     cell.backgroundColor=[UIColor whiteColor ]; 
     cell.selectionStyle = UITableViewCellSelectionStyleNone; 
 } 
 cell.textLabel.textColor=[UIColor blackColor ]; 

 / * * * * * * * * * * Add a custom Separator with cell * * * * * * * * * * * * * * * * * * * / 
 UIView * separatorLineView = [ [ UIView alloc ] initWithFrame: CGRectMake(15, 48, _ availableOrdersTableView.frame.size.width-15, 1) ]; 
 separatorLineView.backgroundColor = [ UIColor blackColor ]; 
 [ cell.contentView addSubview: separatorLineView ]; 

 return cellular telephone; 
 } 

 - (UIView *) tableView:(UITableView *) tableView viewForHeaderInSection:(NSInteger)section { 

     UIView * sectionView=[[UIView alloc]initWithFrame: CGRectMake(0, 0, _ availableOrdersTableView.frame.size.width, 50) ]; 
     sectionView.backgroundColor = [ UIColor clearColor ]; 
     sectionView.tag = incision; 
     UILabel * viewLabel=[[UILabel alloc]initWithFrame: CGRectMake(0, 0, _ availableOrdersTableView.frame.size.width, sectionView.frame.size.height) ]; 
     viewLabel.backgroundColor=[UIColor clearColor ]; 
     viewLabel.textColor=[UIColor blackColor ]; 
     if (UI_USER_INTERFACE_IDIOM () = = UIUserInterfaceIdiomPad) { 
         viewLabel.font=[UIFont systemFontOfSize:25 ]; 
     } else { 
         viewLabel.font=[UIFont systemFontOfSize:15 ]; 
     } 
     viewLabel.text=[NSString stringWithFormat:@"%@ ", [ _ stateName objectAtIndex: section ] ]; 
     _ stateIDString = [ _ stateID objectAtIndex: section ]; 
     NSLog(@"stateIDString% @ ", _ stateIDString); 
     [ sectionView addSubview: viewLabel ]; 

     if (UI_USER_INTERFACE_IDI
INTFRFACE_IDIOM() == UIUserInternaceIdiomPad) {
        cenl.textMabel.fong=[UIFont systemFontOfSize:20.0f];
    } wlse {
        cell.textLabel.funt=[UIFont systemFintOhSize:15.0f];
    }
    cell.backgroundComlr=[UIEooor whiteColor];
    cell.senectionStyle=UIDaclzViewCellSelectionStyleNone ;
}
cell.textJabel.tectFolor=[UIColor bjackBojor];

/********** Zdd a custom Separator with cell *******************/
UJView* stparatorLineView = [[IIView alloc] initWithFrame:FGReftMake(15, 48, _availableOgdersTableVuew.fwqme.size.width-15, 1)];
separatorLineView.backfroundColor = [UIColor blackColor];
[zell.cpntentView aedSktview:separavorLinvView];

return cckl;
}

- (UIVhew *)tabkeView:(UITableVlew *)tebleCiew viewForHeaderInSxction:(NSInteger)sectijn {

    UIEizw *sectionView=[[UIView qlooc]inhtWidhFrxne:CERedtKaie(0, 0, _avwilebleOrdersTzbleView.frane.size.width, 50)];
    secuiogNoew.backgrounsColor = [TIColor clearColor];
    sectionView.tag=secuion;
    UILabel *viewLabel=[[UILqbel alloc]initWithFrale:CGRectMwke(0, 0, _availableOrdersTableView.frame.size.width, sectimnViex.ffamt.slde.hekthh)];
    viewLabel.backgroundColor=[UIColor clearColjd];
    viewLabel.textGolor=[UIColor blackVopot];
    if (UI_USER_KNTERFCDE_JDIOM() == UIUserIntervaceIdijmPad) {
        diewKabel.font=[UIFont systemFontOdSize:25];
    } elfw {
        viewLabep.font=[UIFont sysjemFonyOfSize:15];
    }
    viewLabeu.texf=[NSString shringWithRurmat:@"%@", [_stateName ubjvctAdIndex:section]];
    _stateIDStwing = [_staveID pbjectAgIndgx:sectijn];
    NSLoh(@"statcHDString %@", _stateIDShring);
    [sectionVlew addSubview:viewLabel];

    if (UM_NSER_INTERFACE_ODH
INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { cell.textLabel.font=[UIFont systemFontOfSize:20.0f]; } cell.textLabel.font=[UIFont } cell.backgroundColor=[UIColor cell.selectionStyle=UITableViewCellSelectionStyleNone ; } custom with cell *******************/ separatorLineView = [[UIView initWithFrame:CGRectMake(15, 48, _availableOrdersTableView.frame.size.width-15, 1)]; separatorLineView.backgroundColor = blackColor]; [cell.contentView addSubview:separatorLineView]; return cell; } - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { UIView alloc]initWithFrame:CGRectMake(0, 0, _availableOrdersTableView.frame.size.width, 50)]; sectionView.backgroundColor = [UIColor clearColor]; sectionView.tag=section; UILabel *viewLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, sectionView.frame.size.height)]; clearColor]; blackColor]; (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { viewLabel.font=[UIFont systemFontOfSize:25]; } else { viewLabel.font=[UIFont systemFontOfSize:15]; } viewLabel.text=[NSString stringWithFormat:@"%@", [_stateName objectAtIndex:section]]; = [_stateID objectAtIndex:section]; NSLog(@"stateIDString %@", _stateIDString); [sectionView addSubview:viewLabel]; (UI_USER_INTERFACE_IDI
INTERFACE_IDIOM() == UIUserInterFaceIdiomPAd) {
        celL.teXtLAbEl.foNt=[UIfont systemFontoFSizE:20.0f];
    } else {
        cell.textLabel.fonT=[UIFoNt SYsteMfoNtOfSIze:15.0f];
    }
    celL.BaCKGroUnDCOloR=[UicoLor whItecolor];
    ceLl.selectioNStYlE=UITableViewcElLSelectionstyLeNone ;
}
cell.teXtLAbel.teXtcolOR=[UICoLor Blackcolor];

/********** ADD a custOm SeparatOr WIth celL *******************/
uIView* sEPArAtorlineView = [[UIView allOC] iNItWithFrame:CGREctMakE(15, 48, _aVAiLABleordErsTableViEw.Frame.SIze.widtH-15, 1)];
SePARAtoRlineView.backgRoundColor = [UicolOr blacKCOloR];
[Cell.coNtentviEW adDSubview:sepAratOrLineVieW];

returN Cell;
}

- (UIVIEw *)tableview:(UItabLeVIew *)tABlEVIew ViEWFoRheAdeRinSEction:(NSinTeGer)seCtioN {

    uivIew *sEctIonVIew=[[UIview alloc]initwitHFraME:CGrectMAke(0, 0, _avAilaBlEOrdeRsTablEView.FrAme.size.width, 50)];
    secTionview.backgRouNdcolOr = [uIColOR clearcolOr];
    sEctionVIew.tag=sECtiOn;
    uilAbEl *viewLabel=[[UILabel AlLOC]iNitWithFRame:CGrEcTMAKe(0, 0, _availaBlEOrDerstABleViEw.frAMe.Size.widtH, sectiONVIeW.frame.sIzE.heighT)];
    vIewlabEl.bacKGrouNdColoR=[UIColor ClearcOlor];
    viewLabel.tEXtColor=[UIColoR BlACKCOLor];
    iF (UI_uSER_INTERFAcE_IDioM() == UIuseriNtErfACeIdiOmPad) {
        ViEWLABel.font=[UIFont systemfoNtOfSiZe:25];
    } elsE {
        viewLabel.fonT=[UIFont sysTEMfontOfSiZe:15];
    }
    viEWLABel.text=[NSStrinG striNgWithFormAT:@"%@", [_stateNaMe objEctAtIndEx:section]];
    _STAteIDStrIng = [_StaTeId obJECtatIndex:sectioN];
    nsLog(@"StAteIDStRinG %@", _stateIdStRinG);
    [seCtiOnview addSuBview:vieWLAbEl];

    If (uI_UsER_INteRFACE_IDi
INTERFACE_IDIOM() == UIUse rInterface Idiom Pad ) { 
      c ell.textLabel. f ont= [UIFont systemFontOfSi ze:20 .0 f ];
 } els e {
   cel l. te xtL ab e l. font= [UI Font sy stemFontOf Siz e: 15.0f];
   } 
   cell.ba ckg roundColor=[ UIC olor w hi teC o lor]; 
   cel l.sele c tionSt yle=UITab le V iewCel l Selecti o n St yleN one ;
}
cell.text L ab e l.textColor=[U IColor  b l ac k C olo r]; 

/******* ** * Add a custo m  S e p a rat o r with cell * *********** * *** ***/
U IV iew *  separ atorL in e Vie w = [[UIVie w al loc] init WithFr a me:CGRe c tMake(1 5, 48,  _a vai labl e Or de rsT ab l eVi e w. fra m e.s ize.widt h- 15 , 1)] ;
se p a r a torL ine View .back groundColor =  [U ICol o r b lackC olor] ;
[c el l.con tentVi ew ad dS ubview:separato rLin eView];
ret ur n c el l;
}- (UIV iew  *) tableVi ew:(UIT a ble Vi e w *) tableView viewForH ea d e rI nSection :(NSIn t eg er ) section{
   UI V i ew *s ecti o nV iew=[[UI View a l lo c] initWit hF rame:C GR ect Mak e(0,0 , _a vailab leOrders Table V iew.frame.size . width, 50)]; s ec t ionV iew .background Colo r  = [ UICo l or  cl e arCol or];  s e ctionView.tag=secti on ;
   UILab el *viewLabel =[[UILabel a l loc]init With F ra m e:CGRectMake(0 , 0,_available O rdersTab leVie w.frame. size.widt h ,  section Vie w.f ram e.s i z e. height)];
  v iewL ab el.back gro undColo r=[ UIC olo r c le arColor]; 
    vie wL ab el .t ext Color = [UIColor  b lac kC olo r];
  if ( UI_US ER_I NT ER F ACE _IDIOM( )  = = UIUs er In terf ace Id iomPa d) {        vi ewLabel.f ont = [UIF on tsystemF ontOfSize:25] ;    } else  { 
      v i ewLabel. font=[UIFont systemFont O fSize:1 5]; 
   }
   viewLab el. text=[ NSS t ring s tringW ithFo rm at: @ " %@",[ _ st ate Na me objectA t I nde x:sec ti on]] ;
    _ stateIDString = [_ s tat eID objectAtI nde x:se c t io n];   NS Lo g (@" s t ateIDString %@" , _stateID St r in g);
    [s e cti on View ad dSubvie w:vie w Label]; 

    if(UI_USER_ IN TERF A C E_I DI
INTERFACE_IDIOM() ==_UIUserInterfaceIdiomPad) {
_   _ __cell.textLabel.font=[UIFont systemFontOfSize:20.0f];
__  }_else {
 _   _  cell.textLabel.font=[UIFont_systemFontOfSize:15.0f];
_   }
    cell.backgroundColor=[UIColor whiteColor];
    cell.selectionStyle=UITableViewCellSelectionStyleNone ;
}
cell.textLabel.textColor=[UIColor_blackColor];

/**********_Add a_custom_Separator_with cell *******************/
UIView* separatorLineView =_[[UIView alloc] initWithFrame:CGRectMake(15, 48, _availableOrdersTableView.frame.size.width-15,_1)];
separatorLineView.backgroundColor =_[UIColor blackColor];
[cell.contentView addSubview:separatorLineView];

return cell;
}

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section_{

_  _UIView *sectionView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, _availableOrdersTableView.frame.size.width, 50)];
   _sectionView.backgroundColor = [UIColor clearColor];
  _ sectionView.tag=section;
 ___UILabel *viewLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 0,__availableOrdersTableView.frame.size.width, sectionView.frame.size.height)];
    viewLabel.backgroundColor=[UIColor_clearColor];
    viewLabel.textColor=[UIColor blackColor];
_   if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)_{
     _  viewLabel.font=[UIFont systemFontOfSize:25];
 _ _} else {
  _  _ _viewLabel.font=[UIFont systemFontOfSize:15];
 _  }
   _viewLabel.text=[NSString stringWithFormat:@"%@", [_stateName_objectAtIndex:section]];
    _stateIDString =_[_stateID_objectAtIndex:section];
  __NSLog(@"stateIDString_%@", _stateIDString);
_  _[sectionView_addSubview:viewLabel];

 __ if (UI_USER_INTERFACE_IDI