• 一点 误删,


    if (albumArray.count == 2) {//张图片

            AlbumInfo *info = [albumArray objectAtIndex:0];

            self.firstBtn.hidden = NO;

            self.firstBtn.tag = info.idNumber;

            if (info.image) {

                [self.firstBtnsetBackgroundImage:info.imageforState:UIControlStateNormal];

                if (info.isLast) {

                    [self.firstBtnaddTarget:selfaction:@selector(chooseImage:) forControlEvents:UIControlEventTouchUpInside];

                    [self.firstBtnsetBackgroundImage:nilforState:UIControlStateNormal];

     

                }

     

            }else{

                [self.firstBtn setBackgroundImageWithURL:[NSURL URLWithString:info.thumb]];

                [self.firstBtnaddGestureRecognizer:[selfclickOnceTapGestureFactory]];

                [self.firstBtn addGestureRecognizer:[self longPressGesFactory]];

            }

            self.firstImageView.hidden = NO;

     

            AlbumInfo *info2 = [albumArray objectAtIndex:1];

            self.secondBtn.hidden = NO;

            self.secondBtn.tag = info2.idNumber;

            if (info2.image) {

                [self.secondBtnsetBackgroundImage:info2.imageforState:UIControlStateNormal];

                if (info2.isLast) {

                    [self.secondBtnaddTarget:selfaction:@selector(chooseImage:) forControlEvents:UIControlEventTouchUpInside];

                    [self.secondBtnsetBackgroundImage:nilforState:UIControlStateNormal];

     

                }

     

            }else{

                [self.secondBtn setBackgroundImageWithURL:[NSURL URLWithString:info2.thumb]];

                [self.secondBtnaddGestureRecognizer:[selfclickOnceTapGestureFactory]];

                [self.secondBtn addGestureRecognizer:[self longPressGesFactory]];

            }

            self.secondImageView.hidden = NO;

     

        }

  • 相关阅读:
    c#大圣之路笔记——c# 页面加载数据过长等待显示框
    Python(五)
    Python(四)
    Python(三)
    python(二)数据类型与变量
    初识Python
    Linux初识(九)
    Linux初识(八)正则表达式
    Linux基础初识(七)
    Linux基础初识(六)
  • 原文地址:https://www.cnblogs.com/guligei/p/3277499.html
Copyright © 2020-2023  润新知