SMCardView is an Objective C subclass of UIView.
In order to use SMCardView you need to add SMCardView.h and SMCardView.m to your project.
- Open a storyboard or xib file.
- Drag and drop UIView to your UIView, UIViewController,...
- In Identity inspector, replace the class from UIView with SMCardView.
- In the attributes inspector add its properties (shadowColor, cornerRadius, shadowOffsetWidth, shadowOffsetHeight and shadowOpacity).
SMCardView *cardView = [[SMCardView alloc]initWithFrame:CGRectMake(0, 0, 200, 100)];
cardView.backgroundColor = [UIColor whiteColor];
cardView.cornerRadius = keyCornerRadiusBtn;
cardView.shadowColor = [UIColor darkGrayColor];
cardView.shadowOffsetWidth = 0;
cardView.shadowOffsetHeight = 4;
cardView.shadowOpacity = 0.5;
Sihem MOHAMED