Rightpoint / RZCellSizeManager

Dynamic size computation and caching for cells.
MIT License
243 stars 32 forks source link

Is there a way to use this without NIBs? #15

Closed ExoticObjects closed 10 years ago

ExoticObjects commented 10 years ago

Doing just this in my project (first try out, straight from the sample code):

self.sizeManager = [[RZCellSizeManager alloc] init];

[self.sizeManager registerCellClassName:@"RZTableViewCell"
                           withNibNamed:nil
                         forObjectClass:[RZCellData class]
                 withConfigurationBlock:^(id cell, id object) {
                     [cell setCellData:object];
                 }];

results in this error:

ould not load NIB in bundle: 'NSBundle </Users/eo/Library/Application Support/iPhone Simulator/7.0.3-64/Applications/8B918D89-FC10-4E92-A2D7-2EE2995614E9/Test.app> (loaded)' with name 'dynamicCell'

That method call definitely attempts to load a nib:

    frame #2: 0x0330339c UIKit`-[UINib instantiateWithOwner:options:] + 951
    frame #3: 0x00887e02 Test`-[RZCellSizeManager configureOffScreenCellWithCellClassName:nibName:](self=0x0d9cb450, _cmd=0x00bc5c26, className=0x00ceeec8, nibNameOrNil=0x00000000) + 306 at RZCellSizeManager.m:443

I'd use another, but I don't see any registerCellClassName methods that don't ask for a nib.

Is it possible to use this without nibs? Seems like it should be and that I'm probably doing something wrong...

dexcell commented 10 years ago

Please merge this into master branch

Thank you

bimawa commented 10 years ago

Same error.... :( its LOL i can't use this library if i not use xib???

ndonald2 commented 10 years ago

Addressed in release 1.1.1.