Can I use Storyboard or Interface Builder to create the cells? #96

Ricardo1980 opened this Issue May 11, 2012 · 5 comments

4 participants


Can I use Storyboard or Interface Builder to create the cells?
Or do I have to create them manually by hand code?


I'm using IB to create the cells. I've created a subclass of GMGridViewCell and this is part of what the init method looks like:

- (id) init {
    self = [super initWithFrame:CGRectMake(0, 0, 245, 235)];
    if (self) {
        [[NSBundle mainBundle] loadNibNamed:@"GVCardFront"
        NSAssert(self.frontContent != nil, @"NIB file loaded but content property not set.");

        UIView *parentView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 245, 235)];

        [parentView addSubview:self.frontContent];
        self.contentView = parentView;

And this is from the header:

@property (nonatomic, retain) IBOutlet UIView      *frontContent;

Thanks! It's useful. Can I do something similar with Storyboard?


Is there Project you could share which has this working?


Hi All,
I'm able to create subclass from GMGridViewCell with IB but problem I'm facing is accessing that class in main class where I'm using GMGridView. Its not working. I don't know what the issue is. Below is the code what I'm trying to do in main class.

LandingPageCustomCell *cell = (GMGridViewCell *)[gridView dequeueReusableCell];

LandingPageCustomCell is a class which is derived from GMGridView. But its not working.

Please help me if anyone has any idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment