Loading multiple tableviews in a UIView (UIView Controller)

Discussion in 'iPad Development' started by xchristensen, Sep 17, 2012.

  1. xchristensen
    Offline

    xchristensen iPF Noob

    Joined:
    Sep 17, 2012
    Messages:
    1
    Thanks Received:
    0
    Trophy Points:
    0
    Ratings:
    +0 / 0
    Hello all,

    I've been searching all throughout the internet for assistance, however there has been little to no solutions to my issue at hand. My project that im trying to get a gasp on is somewhat unique (UI is not exactly following the typical norms).

    Below is a diagram of what i am trying to accomplish -- all within a UIView Controller:

    ipad-layout.jpg


    1. UIView is the light grey background
    2. UITableView 1 - this is a static (or it can be dynamic, thats another challenge) UITableview which will hold different numeric values for calculation
    3. UITableView 2 - this is a UITableview which will hold calculated results every time it is run.
    4. UIImageView 1 - this is a calculated image example (I have that figured out)
    Im sure experienced developers are fully aware of my issue, and or what im about to ask. I understand that a static UITableView is required to be in a tableview controller, but I need to display both the UItableView's at the same time which means it has to be within a UIView.

    I can make the interface look the way I need it to through the IB however when trying to compile and build I receive the error that requires the UITableView's to be within a UITableViewController and not a UIView Controller. I have seen many examples using a master-detail layout, but the only stipulation is that this UITableview NEEDS to be displayed 100% of the time when in this view.

    So basically, I am asking for direction... but a code example never hurt either! Thank you 100x's over!

    -Jonathan
  2. peterkelly
    Offline

    peterkelly iPF Novice

    Joined:
    Oct 3, 2012
    Messages:
    15
    Thanks Received:
    0
    Trophy Points:
    0
    Location:
    Adelaide, Australia
    Ratings:
    +0 / 0
    Create your own UIView subclass (for use as 1), and override the layoutSubviews method, where you calculate the position in size of the table views and set their frame properties appropriately.

Share This Page

Search tags for this page

how to uiview ipad

,

ios8 multiple tabeview in one controller

,

multiple tableviews in single view controller

,
multiple tableviews in viewcontroller
,
multiple uitableviews one uiview ipad
,

two table views within one ui view controller

,
uiview with multiple view video
,
uiviewcontroller layoutsubviews
,
using a seperate uitableviewcontroller within a uiview