• Block笔记


    此处不可以使用strongself和self会导致内存泄露,list就是typeList,会持有UserRepeatClickSelectIndexBlock,UserRepeatClickSelectIndexBlock持有self,self又会持有typeList   

    typeof(self) __weak weakself = self;

            _typeList = [[ChooseEventList alloc] initWithFrame:CGRectMake(0, 0, YDScreenSize().width, DWF(45)) itemInfoArray:self.indexPageTypeList.copy configurationBlock:^(ChooseEventList *list) {

                typeof(weakself) __strong strongself = weakself;

                [list setUserRepeatClickSelectIndexBlock:^(ChooseEventList *list, NSInteger chooseIndex) {

                    switch (weakself.indexPageTypeList[chooseIndex].integerValue) {

                        case YDIndexPageExamination:

                        case YDIndexPageWookShop:

                        {

                            [weakself setSelectedIndex:chooseIndex];

                        }

                            break;

                        default:

                            break;

                    }

                }];

            }];

  • 相关阅读:
    hbase 简介
    Hadoop本地库介绍
    MapReduce:详解Shuffle过程
    eucalyptus,openstack
    openstack installing...
    今年2011
    wget代理设置(转载)
    openstack running
    python 升级到2.6(转载)
    高德地图Windowphone API学习地图定位与地图模式的切换
  • 原文地址:https://www.cnblogs.com/yuxiaoyiyou/p/11760492.html
Copyright © 2020-2023  润新知