引言

原文地址

https://blog.csdn.net/z929118967/article/details/77522772

I、设置文本输入框的内边距

(paddingTop 、paddingBottom 、 paddingRight、paddingLeft)

  • 使用 KVC进行文本输入框的内边距设置
   /**
         *paddingTop  paddingBottom  paddingRight、paddingLeft
         */
       [_contentLabel setValue:[NSNumber numberWithInt:QBWcontentLabelpaddingLeft] forKey:@"paddingLeft"];
II、iOS文本长度计算规则:中文占1,英文等能转ascii的占0.5
  • iOS文本长度计算规则:中文占1,英文等能转ascii的占0.5

https://blog.csdn.net/z929118967/article/details/86480425

III、 iOS限制字符串输入(汉字\英文、数字)
  • 【限定文本输入框输入特定最大的字符个数及截取前N个字符】 iOS限制字符串输入(汉字\英文、数字)

https://blog.csdn.net/z929118967/article/details/86073375

IV、 自定义文本输入框弹框视图(例子:【调整价格、调整库存】)
  • 自定义文本输入框弹框视图(例子:【调整价格、调整库存】)

https://blog.csdn.net/z929118967/article/details/106493273

V、综合案例
  • iOS自定义UICollectionViewCell 【单选视图:视图元素不一致(第一列是标题和文字,第二列是包含文本输入框)】

https://kunnan.blog.csdn.net/article/details/106791520

VI 、问题分析

iOS问题分析【在登陆界面的输入框长按 准备粘贴账号信息时发生app闪退】

原文链接:https://blog.csdn.net/z929118967/article/details/105855831 原因:登录控制器的有个自定义的select:方法和UIResponderStandardEditActions 协议方法冲突

VII、系统适配
  • 【IOS13控件私有属性适配】_placeholderLabel推荐采用NSMutableAttributedString适配

https://blog.csdn.net/z929118967/article/details/104277752

see also

#公众号:iOS逆向文本输入框案例: 1、设置内边距 2、限制字符串输入格式 3、自定义文本输入框弹框 4、综合案例 、_javaCSDN认证博客专家  Swift SwiftUI Objective-C

微信公众号:【iOS逆向】

iOS逆向与安全,熟悉iphone/tweak、iphone/tool、cydia的repo 制作 、cocoapods的Specs repo制作(using-pod-lib-create、private-cocoapods)。
I am a software engineer currently living in Changsha. My interests range from technology to writing.

https://mp.weixin.qq.com/s/cRd2-HWycK8-C4SXuTZJBA