zoukankan      html  css  js  c++  java
  • iOS开发之弹出输入框

    最近项目里有个需求要弹出输入框,GitHub上搜了一圈没发现太合适的轮子,就自个儿撸了一个,传送门在这里https://github.com/wozyao/ZYInputAlert,有需要的同学可以down下来跑一下,用法比较简单。

     

    __weak typeof(self) weakSelf = self;

     

    ZYInputAlertView *alertView = [ZYInputAlertView alertView];

    alertView.placeholder = @"输入开心的事儿···";[alertView confirmBtnClickBlock:^(NSString *inputString) {

        weakSelf.inputLabel.text = inputString;

    }];

    [alertView show];


    alert.gif
  • 相关阅读:
    指定的架构无效。错误: CLR 类型到 EDM 类型的映射不明确
    win7IIS错误修改路径最全的
    如何设置textarea光标默认为第一行第一个字符
    我的Hexo网站
    Leetcode Round 4 记录
    几何编程题
    Leetcode Round 3 记录
    几何概型
    Roman Number & Integer
    Single Number
  • 原文地址:https://www.cnblogs.com/LiLihongqiang/p/7085261.html
Copyright © 2011-2022 走看看