MantleCocoa 和 Cocoa Touch 的模型框架
Mantle 是 Cocoa 和 Cocoa Touch 的模型框架,你可以通过它为你的 Cocoa 和 Cocoa Touch 写简单的模型层。
示例代码:
@interface XYUser : MTLModel @property (readonly, nonatomic, copy) NSString *name; @property (readonly, nonatomic, strong) NSDate *createdAt; @property (readonly, nonatomic, assign, getter = isMeUser) BOOL meUser; @property (readonly, nonatomic, strong) XYHelper *helper; @end @implementation XYUser + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ @"name": @"name", @"createdAt": @"created_at" }; } - (instancetype)initWithDictionary:(NSDictionary *)dictionaryValue error:(NSError **)error { self = [super initWithDictionary:dictionaryValue error:error]; if (self == nil) return nil; _helper = [XYHelper helperWithName:self.name createdAt:self.createdAt]; return self; } @end
评论
Cocoa Touch Barcodes
生成条码的iOS类库。开发者注:测试很简单。self.view.backgroundColor=[UIColorwhiteColor];UIImage*image=[UIImageimageFromB
Cocoa Touch Barcodes
0
Criollo基于 Cocoa 的 Web 框架
Criollo是一款基于Cocoa的Web框架,用于OSX和iOS系统。Cocoa有助于创建非常快速独立的web应用程序,这些程序直接通过HTTP或FastCGI提供内容。你可以用Objective-
Criollo基于 Cocoa 的 Web 框架
0
【回顾】专为企业级大模型开发的框架、工具和模型
关注 "GitHub精选",设为 "星标"探索有意思的开源项目大家好,又见面了,我是 GitHub 精选君!背景介绍在当今的企业环境下,很多的公司都在落地大模型相关的应用。但是并不是每个公司都具备相应的专业大模型的人才,能够很好的处理大模型落地过程中碰到的问题。今天要给大家推荐一个 GitHub 开
开源你我他
0
ParlAIAI 对话模型研究和训练框架
ParlAI(发音为“par-lay”)是Facebook开源的,用于在Python中实现的对话AI研究框架。其目标是为研究人员提供:一个用于训练和测试对话模型的统一框架一次对多个数据集进行多任务训练
ParlAIAI 对话模型研究和训练框架
0