自动布局(FDTemplateLayoutCell的使用)

本周末CSDN博客暂时停止服务公告 尊敬的CSDN博客用户,您们好!     经过两周的内测和一周线上公测,我们新的CSDN博客产品将于 2011年 7 月 2 日(本周六)正式上线。目前老的CSDN博客产品累计了上千万篇博客文章,而我们新的CSDN博客产品数据结构进行了重新的设计,并且底层数据库存储从SQL Server迁移到了MySQL数据库,因此进行新产品上线的数据迁移过程非常复杂,迁移时间很长。为此,2011年7月1 阅读详情

今天看到了@SUNNYXX大神的博客,其中有一篇优化UITableViewCell高度计算的那些事讲了FDTemplateLayoutCell,并且与其它两个布局方法做了对比,好处显而易见(最低适配iOS6、运行效率更高)。分别是iOS6的-systemLayoutSizeFittingSize:的API和iOS8的self-sizing cell(estimatedRowHeight、UITableViewAutomaticDimension)方法。上面两个方法之前也在博客中写过。
作为一个开发还没到一年的人,@SUNNYXX大神、喵神等都是学习的榜样,各种崇拜。
不同与Xib+FDTemplateLayoutCell的布局方法,我用的是Masonry+FDTemplateLayoutCell,运行时总是有很多约束冲突,对于原因暂时还不知道。
ViewController

#import "ViewController.h"
#import "CustomCell.h"
#import "Masonry.h"
#import "UITableView+FDTemplateLayoutCell.h"
#import "CustomModel.h"
#import "MHPrettyDate.h"

typedef NS_ENUM(NSUInteger, HTSimulatedCacheModel) {
    HTSimulatedCacheModelNone=0,
    HTSimulatedCacheModelCacheByIndexpath,
    HTSimulatedCacheModelCacheByKey
};


#define COMMON_COLOR            [UIColor colorWithRed:0/255.0f green:0/255.0f blue:107/255.0f alpha:1.0]


#define REUSEID      @"CustomCellId"

@interface ViewController () <UITableViewDataSource,UITableViewDelegate,UIActionSheetDelegate>

//@property(nonatomic,retain) UIRefreshControl   *kRefreshControl;
@property(nonatomic,retain) UISegmentedControl *kSegmentedControl;
@property(nonatomic,retain) UITableView        *kTabelView;
@property(nonatomic,retain) NSMutableArray     *kDataSource;


@end

@implementation ViewController

#pragma mark - Life Cycle

- (void)viewDidLoad {
    [super viewDidLoad];
    [self uiConfig];
    [self buildTestDataThen:^{
        [self.kTabelView reloadData];
         NSLog(@"count=%ld",self.kDataSource.count);
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

#pragma mark - UITableViewDataSource

-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return [self.kDataSource count];
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    NSArray *tempArr=[self.kDataSource objectAtIndex:section];
    return [tempArr count];
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    CustomCell *cell=[tableView dequeueReusableCellWithIdentifier:REUSEID forIndexPath:indexPath];
    [self configureCell:cell atIndexpath:indexPath];
    return cell;
}

-(void)configureCell:(CustomCell *)cell atIndexpath:(NSIndexPath *)indexPath{
    cell.fd_enforceFrameLayout=NO;
    if (indexPath.row%2==0) {
        cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
    }else{
        cell.accessoryType=UITableViewCellAccessoryCheckmark;
    }
    NSArray *tempArr=[self.kDataSource objectAtIndex:indexPath.section];
    [cell setModel:[tempArr objectAtIndex:indexPath.row]];
}

#pragma mark - UITableViewDelegate

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    HTSimulatedCacheModel model=self.kSegmentedControl.selectedSegmentIndex;
    switch (model) {
        case HTSimulatedCacheModelNone:
            return [tableView fd_heightForCellWithIdentifier:REUSEID configuration:^(id cell) {
                [self configureCell:cell atIndexpath:indexPath];
            }];
        case HTSimulatedCacheModelCacheByIndexpath:
            return [tableView fd_heightForCellWithIdentifier:REUSEID cacheByIndexPath:indexPath configuration:^(id cell) {
                [self configureCell:cell atIndexpath:indexPath];
            }];
        case HTSimulatedCacheModelCacheByKey:
            return [tableView fd_heightForCellWithIdentifier:REUSEID cacheByKey:[NSString stringWithFormat:@"key:%ld",indexPath.row] configuration:^(id cell) {
                [self configureCell:cell atIndexpath:indexPath];
            }];
        default:
            break;
    }
}

//-(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{
//    if (editingStyle==UITableViewCellEditingStyleDelete) {
//        NSMutableArray *tempArr=[self.kDataSource objectAtIndex:indexPath.section];
//        [tempArr removeObjectAtIndex:indexPath.row];
//        [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
//    }
//}
//
//-(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath{
//    return @"删除";
//}

//或者
- (nullable NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewRowAction *action=[UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleNormal title:@"删除" handler:^(UITableViewRowAction * _Nonnull action, NSIndexPath * _Nonnull indexPath) {
        NSMutableArray *tempArr=[self.kDataSource objectAtIndex:indexPath.section];
        [tempArr removeObjectAtIndex:indexPath.row];
        [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
    }];
    action.backgroundColor=COMMON_COLOR;
    return @[action];
}

#pragma mark - UIActionSheetDelegate

-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{
    SEL selectors[]={
      @selector(insertRow),
      @selector(insertSection),
      @selector(deleteSection)
    };
    if (buttonIndex<sizeof(selectors)/sizeof(SEL)) {
        void(*imp)(id,SEL)=(typeof(imp))[self methodForSelector:selectors[buttonIndex]];
        imp(self,selectors[buttonIndex]);
    }
}

#pragma mark - Private Method
//模拟异步请求  然后回调
-(void)buildTestDataThen:(void(^)(void))then{
     [self.kDataSource removeAllObjects];
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        NSMutableArray *tempArr=[[NSMutableArray alloc] init];
        for (int i=0; i<20; i++) {
            [tempArr addObject:[self getRandomModelWithIndex:i]];
        }
        [self.kDataSource addObject:tempArr];
            //回调
        dispatch_sync(dispatch_get_main_queue(), ^{
            !then ? :then();
        });
    });
}

-(CustomModel *)getRandomModelWithIndex:(int)index{
    CustomModel *model=[[CustomModel alloc] init];
    model.kTitle=[NSString stringWithFormat:@"Title:%d",index];
    model.kImgName=[NSString stringWithFormat:@"%d.png",arc4random()%6+1];
    model.kContent=[self getRandomContent];
    model.kDataStr=[MHPrettyDate prettyDateFromDate:[NSDate date] withFormat:MHPrettyDateFormatWithTime];
    model.kAuthor=[NSString stringWithFormat:@"Author:%d",index];
    return model;
}

-(void)uiConfig{
    self.view.backgroundColor=[UIColor lightTextColor];
    self.title=@"CellLayoutDemo";
    UIBarButtonItem *rightItem=[[UIBarButtonItem alloc] initWithTitle:@"Action" style:UIBarButtonItemStylePlain target:self action:@selector(rightItemAction)];
    self.navigationItem.rightBarButtonItem=rightItem;

    self.edgesForExtendedLayout=UIRectEdgeNone;
    [self.view addSubview:self.kTabelView];
    self.kTabelView.tableHeaderView=self.kSegmentedControl;
    [self.kTabelView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view.mas_top).offset(10);
        make.left.right.bottom.equalTo(self.view);
    }];
}

-(NSString *)getRandomContent{
    NSInteger num=arc4random()%10+1;
    NSMutableString *mutString=[[NSMutableString alloc] init];
    while (num>0) {
        [mutString appendString:@"不要假设我知道,一切也都是为我而做,为何这么伟大."];
        num-=1;
    }
    return mutString;
}

#pragma mark - Action Method

-(void)rightItemAction{
  UIActionSheet *actionSheet=[[UIActionSheet alloc ] initWithTitle:@"Actions" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Insert a row",@"Insert a section", @"Delete a section",nil];
    [actionSheet showInView:self.view];
}

-(void)insertRow{
    if ([self.kDataSource count]==0) {
        [self insertSection];
    }else{
        NSMutableArray *tempArr=[self.kDataSource firstObject];
        [tempArr insertObject:[self getRandomModelWithIndex:0] atIndex:0];
        NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:0];
        [self.kTabelView insertRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
    }
}

-(void)insertSection{
    NSMutableArray *tempArr=[[NSMutableArray alloc] init];
    [tempArr addObject:[self getRandomModelWithIndex:0]];
    [self.kDataSource insertObject:tempArr atIndex:0];
    [self.kTabelView insertSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
}

-(void)deleteSection{
    if ([self.kDataSource count]>0) {
        [self.kDataSource removeObjectAtIndex:0];
        [self.kTabelView deleteSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
    }
}

#pragma mark - Lazy Method

//-(UIRefreshControl *)kRefreshControl{
//    if (_kRefreshControl==nil) {
//        _kRefreshControl=[[UIRefreshControl alloc] init];
//        _kRefreshControl.tintColor=COMMON_COLOR;
//    }
//    return _kRefreshControl;
//}

-(UISegmentedControl *)kSegmentedControl{
    if (_kSegmentedControl==nil) {
        _kSegmentedControl=[[UISegmentedControl alloc] initWithItems:@[@"No Cache",@"IndexPath Cache",@"Key Cache"]];
        _kSegmentedControl.frame=CGRectMake(20, 0, self.kTabelView.frame.size.width-40, 30);
        _kSegmentedControl.tintColor=COMMON_COLOR;
        _kSegmentedControl.selectedSegmentIndex=0;
    }
    return _kSegmentedControl;
}

-(UITableView *)kTabelView{
    if (_kTabelView==nil) {
        _kTabelView=[[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
        _kTabelView.backgroundColor=[UIColor lightGrayColor];
        _kTabelView.tableFooterView=[UIView new];
        _kTabelView.dataSource=self;
        _kTabelView.delegate=self;
        [_kTabelView registerClass:[CustomCell class] forCellReuseIdentifier:REUSEID];
//        _kTabelView.estimatedRowHeight=200;
//        _kTabelView.rowHeight=UITableViewAutomaticDimension;
    }
    return _kTabelView;
}

-(NSMutableArray *)kDataSource{
    if (_kDataSource==nil) {
        _kDataSource=[[NSMutableArray alloc] init];
    }
    return _kDataSource;
}

@end

CustomCell

#import "CustomCell.h"
#import "Masonry.h"

#define COMMON_COLOR            [UIColor colorWithRed:0/255.0f green:0/255.0f blue:107/255.0f alpha:1.0]
#define CUSTOM_LIGHTGRAY_COLOR  [UIColor colorWithRed:85/255.0f green:85/255.0f blue:85/255.0f alpha:1.0]
#define CUSTOM_BLUE_COLOR  [UIColor colorWithRed:140/255.0f green:170/255.0f blue:228/255.0f alpha:1.0]

@interface CustomCell ()

@property(nonatomic,retain) UILabel     *kTitleLabel,*kContentLabel,*kAuthorLabel,*kDateLabel;
@property(nonatomic,retain) UIImageView *kIconView;

@end

@implementation CustomCell

#pragma mark - Override

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self uiConfig];
    }
    return self;
}

#pragma mark - Public Method

-(void)setModel:(CustomModel *)model{
    self.kTitleLabel.text=model.kTitle;
    self.kContentLabel.text=model.kContent;
    self.kAuthorLabel.text=model.kAuthor;
    self.kDateLabel.text=model.kDataStr;
    self.kIconView.image=[UIImage imageNamed:model.kImgName];
}

#pragma mark - Private Method

-(void)uiConfig{

    self.selectionStyle=UITableViewCellSelectionStyleNone;

    [self.contentView addSubview:self.kTitleLabel];
    [self.contentView addSubview:self.kContentLabel];
    [self.contentView addSubview:self.kIconView];
    [self.contentView addSubview:self.kAuthorLabel];
    [self.contentView addSubview:self.kDateLabel];

    [self.kTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top).offset(10);
        make.left.equalTo(self.contentView.mas_left).offset(10);
        make.width.mas_equalTo(100);
        make.height.mas_equalTo(15);
    }];
    [self.kContentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.kTitleLabel.mas_bottom).offset(10);
        make.left.equalTo(self.contentView.mas_left).offset(10);
        make.right.equalTo(self.contentView.mas_right).offset(-15);
    }];
//    [self.kContentLabel setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisVertical];
//    [self.kContentLabel setContentHuggingPriority:UILayoutConstraintAxisVertical forAxis:UILayoutConstraintAxisVertical];

    [self.kIconView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.kContentLabel.mas_bottom).offset(10);
        make.left.equalTo(self.contentView.mas_left).offset(10);
        make.right.lessThanOrEqualTo(self.contentView.mas_right).offset(-16);
        make.bottom.equalTo(self.kAuthorLabel.mas_bottom).offset(-20);
    }];
    [self.kAuthorLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(self.contentView.mas_bottom).offset(-10);
        make.left.equalTo(self.contentView.mas_left).offset(10);
        make.width.mas_equalTo(100);
        make.height.mas_equalTo(15);
    }];
    [self.kDateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.height.equalTo(self.kAuthorLabel);
        make.right.equalTo(self.contentView.mas_right).offset(-20);
        make.width.mas_equalTo(60);
    }];
}

#pragma mark - Private Method

-(UILabel *)kTitleLabel{
    if (_kTitleLabel==nil) {
        _kTitleLabel=[[UILabel alloc] init];
        _kTitleLabel.textColor=COMMON_COLOR;
        _kTitleLabel.font=[UIFont boldSystemFontOfSize:16];
    }
    return _kTitleLabel;
}

-(UILabel *)kContentLabel{
    if (_kContentLabel==nil) {
        _kContentLabel=[[UILabel alloc] init];
        _kContentLabel.numberOfLines=0;
        _kContentLabel.lineBreakMode=NSLineBreakByWordWrapping;
        _kContentLabel.textColor=CUSTOM_LIGHTGRAY_COLOR;
        _kContentLabel.font=[UIFont systemFontOfSize:14];
    }
    return _kContentLabel;
}

-(UILabel *)kAuthorLabel{
    if (_kAuthorLabel==nil) {
        _kAuthorLabel=[[UILabel alloc] init];
        _kAuthorLabel.textColor=[UIColor lightGrayColor];
        _kAuthorLabel.font=[UIFont systemFontOfSize:14];
    }
    return _kAuthorLabel;
}

-(UILabel *)kDateLabel{
    if (_kDateLabel==nil) {
        _kDateLabel=[[UILabel alloc] init];
        _kDateLabel.textColor=CUSTOM_BLUE_COLOR;
        _kDateLabel.font=[UIFont systemFontOfSize:14];
        _kDateLabel.textAlignment=NSTextAlignmentRight;
    }
    return _kDateLabel;
}

-(UIImageView *)kIconView{
    if (_kIconView==nil) {
        _kIconView=[[UIImageView alloc] init];
        _kIconView.contentMode=UIViewContentModeCenter;
        _kIconView.clipsToBounds=YES;
    }
    return _kIconView;
}

@end

CustomModel

#import <Foundation/Foundation.h>

@interface CustomModel : NSObject

@property(nonatomic,copy) NSString *kTitle,*kImgName,*kContent,*kDataStr,*kAuthor;

@end
面试:LiveData的坑数据丢失问题 //主线程更新数据调用 sampleLiveData.setValue(data); //子线程更新数据调用 sampleLiveData.postValue(data); 参考:Android开发把 LiveData 用于事件传递那些坑_chuhe1989的博客-CSDN博客_android livedata 混淆 LiveData会造成数据丢失 在我的前一篇文章中也提到过,大家也可以直接看源码。postValue 只是把传进来的数据先存到 mPendingData,然后往主线程抛一个 Run.. 阅读详情

相关推荐

【Oracle专栏】扩容导致数据文件 dbf 丢失,实操

在Oracle数据库管理中,遇到数据盘扩容后dbf表空间文件丢失且数据库无法启动的情况,首先需检查数据库状态,发现处于mount状态。通过尝试启动数据库并分析错误日志,确认数据文件丢失。由于没有RMAN备份,采取下线丢失的数据文件并删除相关表空间的策略,成功启动数据库。随后,重新创建丢失的表空间和相应的数据文件,确保数据库恢复正常运行。

weixin_42081167的博客 1478

FDTemplateLayoutCell的使用(不等高tableview)

不等高tableview

xiangrikui524的专栏 393

CSDN新版个人空间介绍之三——代码与收藏

各位尊敬的CSDN用户: 你们好! 新版个人空间上线日益临近,我们改版的各项进程也在如期顺利进行,4月初个人空间就将以崭新的面貌和大家见面咯!如各位用户对新版个人空间有任何意见、建议,欢迎发送邮件至 webmaster(at)csdn.net 联系我们,我们会结合广大用户的建议持续进行改进,给大家提供更为优质的产品跟服务。 之前我们已经给大家介绍过新版个人空间中个人中心和个人主页

CSDN产品官方博客 2万+

FDTemplateLayoutCell 的使用

时间好少,看点东西记录一下,以免以后忘记了!好好学习,天天向上! 1.首先在vc中的必须是注册cell [self.footerTable registerClass:[KuShowCommentTableViewCell class] forCellReuseIdentifier:@"commentCell"]; 2.在 cellForRowAtIndexPath方法中实现 ...

weixin_34208185的博客 458

RabbitMQ如何防止消息丢失及重复消费

文章目录RabbitMQ如何防止消息丢失及重复消费一、消息丢失1.1、生产者没有成功把消息发送到MQ1.1.1、confirm(发布确认)机制1.1.2、事务机制1.2、RabbitMQ接收到消息之后丢失了消息1.3、消费者弄丢了消息二、如何防止重复消费 RabbitMQ如何防止消息丢失及重复消费 一、消息丢失 如图所示,RabbitMQ丢失消息的情况可以发送在任何一个节点。 1.1、生产者没有成功把消息发送到MQ 丢失的原因 :因为网络传输的不稳定性,当生产者在向MQ发送消息的过程中,MQ没有成功接收

wang_luwei的博客 1万+

找回PPT中丢失的源文件数据

之前做PPT的时候有很多数据是嵌入的excel,后来excel的文件找不到了,再利用其中的数据则非常困难。

凝眉 3467

UITableView-FDTemplateLayoutCell 使用教程

`UITableView-FDTemplateLayoutCell` 是一个用于自动计算 `UITableViewCell` 高度的开源库。它通过缓存单元格的高度来提高 `UITableView` 的滑动流畅性,主要利用 `Runloop` 在空闲状态时后台计算单元格的高度并缓存起来,从而在使用时直接从缓存中获取。 ## 2、项目快速启动 ### 安装 你可以通过 CocoaPods 安装 ...

gitblog_01119的博客 930

CSDN草稿箱在哪里?找回丢失草稿的完整路径指南

在内容创作过程中,草稿保存与找回是写作者高频关注的基础操作。许多平台将草稿与已发布文章统一管理,通过状态筛选区分,理解这一机制有助于避免误删或丢失。自动保存虽能降低风险,但受触发间隔、网络状态影响,并非万无一失。因此,养成手动保存、本地备份、先拟标题等习惯,是保障内容安全的关键。本文以CSDN为例,详细讲解网页端与手机App的草稿箱入口路径,结合常见丢失场景,如未保存关闭页面、已发布文章误存草稿、跨设备不同步等,给出检索与恢复方法,帮助创作者快速定位草稿,建立防丢稿机制。

weixin_42522009的博客 321

优化UITableViewCell高度计算的那些事

优化UITableViewCell高度计算的那些事 我是前言 这篇文章是我和我们团队最近对 UITableViewCell 利用 AutoLayout 自动高度计算和 UITableView 滑动优化的一个总结。 我们也在维护一个开源的扩展,UITableView+FDTemplateLayoutCell,让高度计算这个事情变的前所未有的简单,也受到了很多星星的支持,github

月若无涯的专栏 894

自己动手编写CSDN博客备份工具-blogspider

作者:gzshun. 原创作品,转载请标明出处! 来源:http://blog.csdn.net/gzshun 网络爬虫(又被称为网页蜘蛛,网络机器人),是一种按照一定的规则,自动的抓取万维网信息的程序或者脚本。另外一些不常使用的名字还有蚂蚁,自动索引,模拟程序或者蠕虫。 网络爬虫最重要的任务,就是从互联网搜索出需要的信息,将网页抓取下来并分析,很多搜索引擎,比如百度,谷歌,后台

gzshun 1万+

解放双手,CSDN博客支持站外文章自动同步!

写博客是总结归纳再阐述的一个过程,一篇文章辛辛苦苦敲出来后,总想分享给更多的人,许多小伙伴都有多个分享文章的渠道,但是同时维护着多个平台,时间精力上根本不够用,为解决这个问题,CSDN特开通博客同步功能,只需要您填写链接里的信息即可将站外文章同步至CSDN 博客,申请链接:https://t.csdnimg.cn/EHP7 使用同步功能也是有要求的哦,您的搬家链接中必须有十篇以上的原创技术文章。没有原创技术文章,审核小姐姐是不予通过的哦。 下列网站都可以搬家到CSDN:博客园,简书,51CTO.

夏目的博客 998

3步搞定Arduino ESP32开发环境:快速搭建物联网项目基础

还在为ESP32开发环境配置而头疼吗?作为Arduino官方支持的ESP32核心开发框架,这个项目为你提供了完整的ESP32系列芯片支持,让你能够用熟悉的Arduino语法轻松开发物联网应用。本文将用最直接的方式,带你快速完成ESP32开发环境的搭建,避开那些常见的坑。 ## 为什么选择Arduino ESP32开发框架? 如果你之前用过Arduino,那么ESP32开发对你来说会非常亲切。这

gitblog_00019的博客 662

从丢失到找回:手机相册恢复实战教程

手机里的照片承载着我们的情感和记忆,如果丢失,可能会给我们带来无法弥补的遗憾。为了帮助手机相册恢复,找回这些珍贵的资料,我们特别推出了这份实战教程,为你提供有效的解决方案,一起来看看吧!

shu_ju_wa的博客 1582

swift-FDTemplateLayoutCell-模板自动布局单元格自动UITableViewCell高度计算

FDTemplateLayoutCell - 模板自动布局单元格自动UITableViewCell高度计算

python--爬取CSDN作者信息及文章

本次项目爬取的是CSDN上作者的数据信息以及作者的文章,本次项目主要用到parsel、os、re、xlwt、requests、pdfkit等库。此次项目写了两个方面,分别为:爬取用户数据,爬取作者文章并且转化为pdf。 用户数据模块主要包括:原创数量,周排名,总排名,访问数,用户等级,积分,分数,收藏的文章数量。爬取作者文章模块:将HTML文章转化为pdf文件格式,便于阅读以及防止乱码,数据及丢失等情况。 下面是部分源码: 主要用到的模块: 获取作者文章部分源码...

qifjwgh的博客 1571

UITableView-FDTemplateLayoutCell

UITableView-FDTemplateLayoutCell tableview 高度计算

swift-使用Masonry结合UITableView-FDTemplateLayoutCell

使用Masonry结合UITableView-FDTemplateLayoutCell,纯代码实现聊天文字消息界面的展示;

FDTemplateLayoutCelltest

利用FDTemplateLayout 来实现cell的自适应高度

上一篇: ios9Tips
下一篇: 3DTouch
DuYangLu
博客等级 码龄11年 0粉丝 46原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值