heistings
heistings
@wdq123550 你可以考虑 SDWebImageContextImageThumbnailPixelSize 来完成本地缩图。SDWebImage 会使用 SDWebImageContextImageThumbnailPixelSize 作为缓存 key 的一部分,并保留两份数据
我觉得我可能知道原因了: ``` else { YYEncodingType type = propertyMeta->_type & YYEncodingTypeMask; switch (type) { case YYEncodingTypeObject: { id v = ((id (*)(id, SEL))(void *) objc_msgSend)((id)model, propertyMeta->_getter); value = ModelToJSONObjectRecursive(v); if (value...
This bug can be fixed by #268
首先,你这样的设计有问题,不同场景应该对应 model 上不同的 property。如果你执意如此,你可以试试下面这种方式: ```objective-c + (nullable NSDictionary *)modelCustomPropertyMapper { return @{@"name":@[@"name_sc", @"name_tc]}; } ``` dict to model 时,有 name_sc 或者 name_tc 会自动映射到 name 属性上; modeo to dict 时,name 属性一定会映射到第一个...
@bluesky0109 1. json to model 阶段,支持多值映射,参考: ``` + (NSDictionary *)modelCustomPropertyMapper { return @{@"name" : @"n", @"page" : @"p", @"desc" : @"ext.desc", @"bookID" : @[@"id",@"ID",@"book_id"]}; } ``` 2. modle to json...
@bluesky0109 你仔细看一下之前的回答,给出了如何使用 modelCustomWillTransformFromDictionary 的 Sample。 但是 model to json 阶段,只能映射成一种。
And it will be perfect if `tableView.tableHeaderView` and `pull to refresh` are **both** available to me. Using `tableView.tableHeaderView` to show temporary info, such as activity, is quite convenient.
@davidganster refreshContol can only be used in subclass of UITableViewController. It is not a UIScrolView feature. Both UITableView and UICollectionView need this feature.
@davidganster Never mind.