Interface Builder and UITableViewCell

Discussion in 'iOS Programming' started by jguru, Sep 18, 2008.

  1. jguru macrumors member

    Apr 10, 2008
    So I have been fighting over this for a while.. and currently I basically create a custom UITableViewCell and draw it myself.. like the labels on the UITableViewCell. which isn't that bad.. but really is a pain to code again and again...

    Now I am wondering if I create a XIB with just UITableViewCell how can I go abouts using it?

    any tips? ideas?
  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    You can create a view in its own nib and load it using the API in UINibLoading.h. There will be some complications with this strategy though so read the documentation.

    If you create your own tableViewCell subclass that builds itself in code I don't see what's so complicated about that. Then you don't have to code it 'again and again' You've coded it once and that's it.

Share This Page