SDK Version 4

Discussion in 'Mac Programming' started by Duke Leto, Apr 28, 2008.

  1. Duke Leto macrumors regular

    Joined:
    Mar 17, 2008
    #1
    I juts upgraded my SDK from version 3 to version 4. I am pretty sure that I updated the code to work, but my custom tableview cells are not displaying any text at all.. What is the problem? It was working in Version 3, but ..
     
  2. larrymiller01 macrumors newbie

    Joined:
    Apr 28, 2008
    #2
    me too

    I have the same problem. When the cell is nil and new one is created it works but when it uses the "dequeueReusableCellWithIdentifier:" the cell does not update. If I force the custom code to run the cell still does not change. This looks like a bug in beta 4!!
     
  3. Duke Leto thread starter macrumors regular

    Joined:
    Mar 17, 2008
    #3
    Another problem that I have been having (though it isn't a bug) is that the updated source code examples are changing a lot, and now they are using Interface Builder a good bit. I am not sure I want to learn Interface Builder just yet, and it makes for some difficulty getting the general architecture of the code.
     
  4. Littleodie914 macrumors 68000

    Littleodie914

    Joined:
    Jun 9, 2004
    Location:
    Rochester, NY
    #4
    Yea, after building an iPhone UI programatically, I can't think of any reason to use IB. It just feels like unnecessary bloat at this point.

    For the custom tableview cells, are you making sure that you aren't overriding the super's setSelected, drawRect, and prepareForReuse methods? If you have them declared in your subclass and they're empty, that's surely the problem. :)
     
  5. larrymiller01 macrumors newbie

    Joined:
    Apr 28, 2008
    #5
    I'm overriding the drawRect but not the others. This all worked in beta 2 and 3. I've been through the current docs and this is supposed to work still.
     
  6. Duke Leto thread starter macrumors regular

    Joined:
    Mar 17, 2008
    #6
    Not overriding any .. but I am thankful that I am not the only one without a use for IB. I mean come on, after those weeks of doing them by code, of all the frustration over getting used to them, now you have to deal with IB..

    I sometimes wish that I started using the SDK when it was first officially released. Then there'd be no updates for the SDK, documentation, and sample source code.

    But at least I get a head start :)

    EDIT!!!! I figured it out. I set CGRectZero for the Textfield ... *ashamed*
     

Share This Page