LCLPlayingCardView是一个简单但美观的免费扑克牌,实现了UIView。
可作为CocoaPod使用。有关更多详细信息,请参阅CocoaDocs文档。
#import "LCLPlayingCardView.h"
初始化小牌
LCLPlayingCardView *card1 = [LCLPlayingCardView cardWithPoint:CGPointMake(80, 120)
withCardSize:LCLPlayingCardSmall
withRank:2
withSuit:LCLPlayingCardDiamond
isVisible:YES];
[self.view addSubview:card1];
初始化中牌
LCLPlayingCardView *card2 = [LCLPlayingCardView cardWithPoint:CGPointMake(80, 0)
withCardSize:LCLPlayingCardMedium
withRank:11
withSuit:LCLPlayingCardClub
isVisible:YES];
[self.view addSubview:card2];
初始化大牌
LCLPlayingCardView *card3 = [LCLPlayingCardView cardWithPoint:CGPointMake(80, 200)
withCardSize:LCLPlayingCardLarge
withRank:10
withSuit:LCLPlayingCardSpade
isVisible:YES];
[self.view addSubview:card3];
- (void)flipCard;
- (void)tiltCardWithDegrees:(float)degrees
- (void)tiltCardRandomly
LCLPlayingCardView采用MIT许可证。了解更多信息请参阅LICENSE文件。
如果您喜欢这个或使用这个,请收藏/fork/watch/tweet该仓库,提出问题/建议,发送给我补丁请求等,这样我知道何时对其进行改进。