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
posted @ 2017-06-27 15:01  李洪强  阅读(3932)  评论(0编辑  收藏  举报