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];

                        }

                    }];

     

     

     

  • 相关阅读:
    ubuntu18.04更新源
    机器学习网址
    ubuntu18.04下安装Anaconda及numpy、matplotlib
    google云使用记录
    tensorflow省钱方案-ml-engine
    Angular 创建项目
    Angular 环境搭建
    android APP国际化一键切换实现
    android 上下滑动标题栏和状态栏改变颜色实现
    android滑动标题栏渐变实现
  • 原文地址:https://www.cnblogs.com/studyNT/p/4492960.html
Copyright © 2011-2022 走看看