iphone - ToolBar between UINavigationBar and UITableView? -


i have uitableviewcontroller embedded on uinavigationcontroller. tableview instance of nsfetchedresultscontroller. need add toolbar between navigationcontroller's top bar , tableviewcontroller, can't figure out how (i don't know if it's possible). want apple did wwdc app (except don't have tableviewcontroller embedded in navigationcontroller). need have controls on bar drive nsfetchedresultscontroller.

some people suggested people similar problems use uitableview instead of tvc, need have tvc instance of nsfetchedresultscontroller.

any ideas on how accomplish this? have programmatically? if so, how?

btw, i'm targeting ios6+ storyboards , arc.

apple's wwdc app

the approach prefer use uiviewcontroller @ outer level, containing toolbar , container view holds table. build table in separate uitableviewcontroller , wire container view using embed segue. overall, think makes code more modular , easier follow because high-level structure laid out in storyboard.

the steps use embed segue follows:

  1. control-drag container view view controller want embed , select "embed" option.
  2. give embed segue identifier in attributes inspector.
  3. configure table view controller in parent's prepareforsegue method, checking segue's identifier.

there example of in vcollectionviewgridlayout library. take @ sort & filter example project.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -