zoukankan      html  css  js  c++  java
  • 私人通讯录(搭建界面

    - (void)文本框TextField的代理方法

    {

        // return NO to disallow editing.  是否 允许编辑

        //-(BOOL)textFieldShouldBeginEditing:(UITextField *)textField

        //{

        //

        //    return NO;

        //}

        

        // became first responder  光标 切换的时候调用

        //- (void)textFieldDidBeginEditing:(UITextField *)textField;

        //{

        //    NSLog(@"%@",textField.text);

        //}

        

        

        // return YES to allow editing to stop and to resign first responder status. NO to disallow the editing session to end

        //是否结束编辑

        //- (BOOL)textFieldShouldEndEditing:(UITextField *)textField

        //{

        //

        //    return NO;

        //}

        

        //光标 切换 textfield 结束的时候调用

        //- (void)textFieldDidEndEditing:(UITextField *)textField;

        //{

        //

        //    NSLog(@"%@",textField.text);

        //}

        // may be called if forced even if shouldEndEditing returns NO (e.g. view removed from window) or endEditing:YES called

        //

        

        // return NO to not change text  NO 不允许编辑,再什么范围内 可以修改和调用

        //- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{

        //

        //    return YES;

        //

        //}

        

        //是否删除 // called when clear button pressed. return NO to ignore (no notifications)

        //- (BOOL)textFieldShouldClear:(UITextField *)textField{

        //

        //    return NO;

        //}

        

        

        // called when 'return' key pressed. return NO to ignore.

        //- (BOOL)textFieldShouldReturn:(UITextField *)textField{

        //

        //    return NO;

        //}

        //

    }

  • 相关阅读:
    springsecurity-用户注销
    springsecurity-自定义403页面
    springsecurity-用户授权 (注解使用)
    springsecurity-用户授权
    springsecurity-自定义登录页面和自定义认证
    springsecurity-查询数据库认证
    springsecurity-基本原理(过滤器链)
    springsecurity-web权限方案-用户认证(设置用户名和密码)
    u-boot移植(九)---代码修改---NAND
    u-boot移植(八)---代码修改---存储控制器--MMU
  • 原文地址:https://www.cnblogs.com/pals/p/5097412.html
Copyright © 2011-2022 走看看