zoukankan      html  css  js  c++  java
  • 输入文本框设置

    今天就给大家分享个简单的输入文本框吧!!!欢迎大家给意见,后续精彩继续更新中。

    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"标题" message:nil

     preferredStyle:UIAlertControllerStyleAlert];

        _progressText.placeholder = @"占位符";

        

        [alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {

            textField.placeholder = _progressText.placeholder;

            textField.keyboardType = UIKeyboardTypeDefault;

            _progressText = textField;

        }];

        UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {

            return ;

        }];

        

        UIAlertAction *otherAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {

            //要做的事情

        }];

           [alertController addAction:cancelAction];

        [alertController addAction:otherAction];

        [self presentViewController:alertController animated:YES completion:nil];

  • 相关阅读:
    2016年3月3日
    性能测试之我解
    Vim命令合集
    vi-vim常用命令
    架构的本质是
    网站三层架构学习之一 分层式结构
    Spring 4 + Quartz 2.2.1 Scheduler Integration Example
    “城市民族工作条例”详解--建议废止
    字符串匹配处理
    LogBack简易教程
  • 原文地址:https://www.cnblogs.com/Ruby-Hua/p/5782703.html
Copyright © 2011-2022 走看看