heistings

Results 13 issues of heistings

既然 BHContext 和 BeeHive 都被设计成单例,为什么 BeeHive 还需要依赖注入 context ? ```objective-c [BHContext shareInstance].env = BHEnvironmentDev; //定义应用的运行开发环境 [BHContext shareInstance].application = application; [BHContext shareInstance].launchOptions = launchOptions; [BHContext shareInstance].moduleConfigName = @"BeeHive.bundle/CustomModulePlist";//可选,默认为BeeHive.bundle/BeeHive.plist [BHContext shareInstance].serviceConfigName =...

I think this is a quite great feature if implemented.

enhancement

#264 有一个逆命题,就是 YYModel 上的一个 property,如何能够支持多重映射? 例如,我有两个不同的网络接口,对于同一个 model 上行的参数 key 不同: ``` @interface ImageModel @property (nonatomic, strong) NSString *url; @end ``` api1: ``` { "imageUrl" : "https://avatars3.githubusercontent.com/u/839283" } ``` api2: ```...

尽管 `+[ yy_modelWithDictionary]` 方法支持 NSValue 作为 value type,并能够成功 setup model;但是 `- [ yy_modelToJSONObject]` 正确的生成 NSValue;下面例子中的 dict 对象打印出来是一个空的字典。 YYModel 无法通过以下测试: ```objective-c #import @interface YYCGStructTestObject : NSObject @property (nonatomic) CGPoint point; @property...

您好,我遇到了一个问题,希望能够听听您的看法: 从服务器获取到的 json dict 模型,我们称之为 server json 吧,它大概长这样: ``` { "name": "应用创造学", "other": "other values", "ext": { "desc": "应用创造学是一门研究创造的学问" } } ``` 然而我希望它在数据库中,是这个样子: ``` { "name": "应用创造学", "other": "other values",...

这个接口定义不太合理, `+[NSArray yy_modelArrayWithClass:MyModel.class json:json]` 不如 `+[MyModel yy_modelArrayWithJson:json]` 自然。 ```objective-c @interface NSArray (YYModel) /** Creates and returns an array from a json-array. This method is thread-safe. @param cls The instance's class...

最近要新写一个 App,正在研究模型化方案选型。我比较了 JSONModel 和 YYModel,收获很大。我发现 JSONModel 中封装的 KeyMapper,是一个非常重要的设计概念。它将 Mapper 逻辑从模型中剥离,能够自由的组合。 想象一下这样的场景,你有两套不同的 API,上传同一个对象,他们的协议不同,A 协议要求 book_id 而 B 协议要求 bookID,这种情况当前的 YYModel 设计只能在 NSDictionary => Model 环节兼容这种情况,而反向则不行。 期待你的留言。

This is my model class: ``` @interface YYWebArticle : YYArticle @property (nonatomic, strong) NSString *url; @property (nonatomic) CGRect rect; @property (nonatomic) NSValue *myRect; @end ``` ``` @implementation YYWebArticle + (nullable...

If not fixed, YYModel will not pass the Test below: ``` @interface YYNSValueTestObject : NSObject @property (nonatomic, strong) NSValue *point; @property (nonatomic, strong) NSValue *vector; @property (nonatomic, strong) NSValue *size;...

Is there any way to let YYWebImage respect the HTTP response cache-control, such as no-cache ?