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;

     

        }

  • 相关阅读:
    「网络流 24 题」魔术球
    「网络流 24 题」圆桌聚餐
    「网络流 24 题」最小路径覆盖
    「网络流 24 题」太空飞行计划
    「网络流 24 题」搭配飞行员
    「网络流 24 题」负载平衡
    「网络流 24 题」数字梯形
    餐巾计划问题
    让Double类型完整显示,不用科学计数法显示E
    kotlin新工程
  • 原文地址:https://www.cnblogs.com/guligei/p/3277499.html
Copyright © 2011-2022 走看看