最近项目里有个需求要弹出输入框,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];

iOS开发之弹出输入框
alert.gif

相关文章:

  • 2022-01-31
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2021-09-11
  • 2022-03-05
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
相关资源
相似解决方案