![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
uitextfield
Gao_zi
这个作者很懒,什么都没留下…
展开
-
UI 03 UITextField
UITextField 继承于 UIControl . 特殊的技能是可以输入.// 输入框 UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(100, 50, 200, 40)]; textField.backgroundColor = [UIColor whiteColor]; [原创 2015-08-03 08:50:40 · 430 阅读 · 0 评论 -
UI 03 关于UITextField键盘遮挡问题
首先,需要引头文件, 签订协议 已改成 MRC ! //1.三个textfield UITextField *textField1 = [[UITextField alloc]initWithFrame:CGRectMake(100, 200, 150, 40)]; textField1.layer.borderWidth = 1; textField1.layer.cor原创 2015-08-03 22:48:44 · 403 阅读 · 0 评论 -
UI 03 UIButton 和 UITextField
可以将UIButton 与 UITextField 结合起来使用, 产生如下图的效果. // 新建一个Button UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; button.frame = CGRectMake(100, 300, 50, 50); button.backgroundC原创 2015-08-03 22:00:32 · 422 阅读 · 0 评论 -
UI 03 自定义的Label-TextField视图 --- LTView
LTView 是自写的继承于 UIView 的类 这其中创建一个UILabel 和一个 UITextField ; 这样可以少些一半的代码. 代码如下: LTView.h#import <UIKit/UIKit.h>@interface LTView : UIView<UITextFieldDelegate> // 因为要在类的外部获取输入框的内容,修改Label的标题,所以我们把这两原创 2015-08-04 21:41:49 · 603 阅读 · 0 评论