zoukankan      html  css  js  c++  java
  • 一点 误删,

    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;

     

        }

  • 相关阅读:
    学习笔记—二进制和精度问题
    学习笔记—Buffer的常用方法与实现
    学习笔记—Node中第三方模块
    学习笔记—npm的介绍与使用
    .NET中序列化(一)
    .NET中序列化(二)
    JavaScript在多浏览器下杂谈1for循环
    .NET中序列化(三)
    DLCB额度切分
    DLCB解决问题的思路
  • 原文地址:https://www.cnblogs.com/guligei/p/3277499.html
Copyright © 2011-2022 走看看