Wednesday, 15 August 2012

How to add a few properties at UITableViewCell class? -



How to add a few properties at UITableViewCell class? -

i'm using uitableviewcontroller , uinavigationcontroller. save info on tableviewcell.

uitableviewcell_extensionof.h file

#import <uikit/uikit.h>

@interface uitableviewcell ()

@property (strong, nonatomic) nsdate *ondate;

@end

masterviewcontroller.m file

#import "uitableviewcell_extensionof.h"

......

-(void)viewdidload {

..... uitableviewcell *cell = [[uitableviewcell alloc] init];

cell.ondate = [nsdate date]; //crash

}

error log : -[uiaccessibilitybundle setondate:]: unrecognized selector sent instance 0x7381b90

how can add together properties @ uitableviewcell? lastly card subclass, way work? (actually, haven't tried subclass yet)

class properties

No comments:

Post a Comment