HFTAGManager
使用方法
要运行示例项目,请克隆仓库,并首先从Example目录运行pod install
HFTAGRule* rule = [[HFTAGRule alloc] initWithBlock:^[(TagRule* rule){
NSPredicate *purchased = [NSPredicate predicateWithFormat:@"SELF.isPurchased MATCHES %@", @"1"];
[rule setPredicate:purchased rule:@{@"gift":@"apple"}];
// not purchased
[rule setPredicate:nil rule:@{@"gift":@"nothing"}];
}];
NSDictionary* gift = [container dictionaryForKey:@"specialGift" defaultRule:rule];
需求
安装
HFTAGManager可以通过CocoaPods获得。要安装它,只需将以下行添加到您的Podfile中
pod "HFTAGManager"
作者
Hai Feng Kao, [email protected]
许可协议
HFTAGManager 在MIT许可下提供。有关更多信息,请参阅LICENSE文件。