漂亮Twitter/Facebook风格的卡片:RKCardView

分享到:
漂亮Twitter/Facebook风格的卡片:RKCardView。

下面是一个在实际项目中使用的示例:

687474703a2f2f692e696d6775722e636f6d2f595661534578776c2e706e67.jpg
用法:

RKCardView* cardView= [[RKCardView alloc]initWithFrame:CGRectMake(x origin, y origin, card width, card height)];
cardView.coverImageView.image = [UIImage imageNamed:@"your cover photo"];
cardView.profileImageView.image = [UIImage imageNamed:@"your profile picture"];
cardView.titleLabel.text = @"Richard Kim";
[cardView addBlur]; // comment this out if you don't want blur
[cardView addShadow]; // comment this out if you don't want a shadow
[self.view addSubview:cardView];

项目主页:http://www.open-open.com/lib/view/home/1416796543211

昵    称:
验证码:

相关文档: