Closed mimmo00 closed 9 years ago
I used a storyboard with a UIViewController and assigned the card class to its view. Then Instantiated
UIViewController * controller = [self.storyboard instantiateViewControllerWithIdentifier:@"CardController"];
CardView * card = (CardView *) controller.view;
Hi, there is a way to use xib as card?
I tried this:
//instead of: initWithFrame
[self setupView]; ... [self addSubview:overlayView];
} return self; }
//and -(DraggableView )createDraggableViewWithDataAtIndex:(NSInteger)index { DraggableView draggableView = [[[NSBundle mainBundle] loadNibNamed:@"cardView" owner:self options:nil] objectAtIndex:0];
}
but don't work
Thanks