zoukankan      html  css  js  c++  java
  • 复制功能的实现

    #pragma mark - copyCodeMethod

    - (void)copyMethod:(UIButton *)button {
       
        if (button.tag == 7000) {
            UIPasteboard *pboard = [UIPasteboard generalPasteboard];
            pboard.string = content.text;
            NSLog(@"%@", pboard.string);
        }
       
        UIView *bigView = (UIView *)button.superview;
       
        for (int i = 0; i < self.codeArray.count - 1; i++) {
            if (button.tag == 5000 + i) {
                UILabel *conten = (UILabel *)[bigView viewWithTag:6000 + i];
                    
                    NSLog(@"%@", pboard.string);
               
            }
        }
    }
  • 相关阅读:
    Swing 2
    Swing 1
    集合
    关于sql 模糊字段查询语句
    关于前端开发的几篇文章
    黄金点游戏
    word count
    四则运算
    软件工程——《构建之法》读后困惑
    自我介绍
  • 原文地址:https://www.cnblogs.com/tian-sun/p/5019991.html
Copyright © 2011-2022 走看看