zoukankan      html  css  js  c++  java
  • 好用的工具库

    DDLog 打印日志,可以改变打印等级,也可以彩色显示。

    封装约束,就不用写一堆代码来写约束了。可以很方便就定义一个view的位置。

    https://github.com/SnapKit/Masonry

    点击事件或者其他事件的block

    zwaldowski / BlocksKit

    https://github.com/zwaldowski/BlocksKit

    eg. 例如点击

        在tableview一层就赋予好点击后会执行什么函数

                cell.itemClickedBlock = ^(NSInteger index){

                    [weakSelf goToIndex:index];

                };

    ----------------------------------------------------------------

    在cell里写好点击后会回调上面赋予的block

        [item bk_addEventHandler:^(id sender) {

            if (self.itemClickedBlock) {

                self.itemClickedBlock(index);

            }

        } forControlEvents:UIControlEventTouchUpInside];

    ----------------------------------------

    actionsheet 

     

                    UIActionSheet *actionSheet = [UIActionSheet bk_actionSheetCustomWithTitle:@"删除此评论" buttonTitles:nil destructiveTitle:@"确认删除" cancelTitle:@"取消" andDidDismissBlock:^(UIActionSheet *sheet, NSInteger index) {

                        ESStrongSelf

                        if (index == 0 && _self.commentIndex >= 0) {

                            Comment *comment  = [_self.commentTweet.comment_list objectAtIndex:_self.commentIndex];

                            [_self deleteComment:comment ofTweet:_self.commentTweet];

                        }

                    }];

     

     

     

  • 相关阅读:
    Maven项目打包时指定配置策略
    使Jackson和Mybatis支持JSR310标准
    Java 8的Time包常用API
    MySQL 聚集拼接
    将List<E>内对象按照某个字段排序
    判断List<E>内是否有重复对象
    eclipse中Maven项目启动报错“3 字节的 UTF-8 序列的字节 3 无效。”
    控制层@Value注解取不到值
    IntelliJ IDEA实时代码模板
    OD: Exploit Me
  • 原文地址:https://www.cnblogs.com/studyNT/p/4492960.html
Copyright © 2011-2022 走看看