UI中的控件



CGRectUIScreenbounds

,,,

//窗口,只才能=[[]才能:矩形];

,,,

//窗口backgroundColorUIColor

,,,

//windowwindow makeKeyAndVisible


/* * * * * * * * * * * * * * * * * * UIButton * * * * * * * * * * * * * * * * * * * * * * */

,,,

buttonWithTypeUIButtonTypeCustom

,,按钮只=,(,,,,,,),

设置高亮状态下按钮的标题

setTitleforStateUIControlStateNormal

设置点击事件响应的方法

addTargetactionforControlEventsUIControlEventTouchUpInside

设置平常状态下标题的颜色setTitleColorblackColorforStateUIControlStateNormal

设置高亮状态下标题的颜色setTitleColorredColorforStateUIControlStateHighlighted

设置标题的字体

,,按钮. .,=(,,);

//窗口,,(只:按钮),

/* * * * * * * * * * * * * * * * * * * * UITextField , * * * * * * * * * * * * * * * * * * * * */

,,,* textfield=[[,]: (,,,,,,)];

禁止首字母大写

UITextAutocapitalizationTypeNone

//

UIKeyboardTypeNamePhonePad

输入框的边框类型

UITextBorderStyleRoundedRect

//文本框。边框样式=UITextBorderStyleLine;

//文本框。边框样式=UITextBorderStyleBezel;

//文本框。边框样式=UITextBorderStyleNone;

设置委托代理模式

//textfield.delegate=自我;

//

返回,,textfield又是;=,

是否安全输入,是的话,输入内容将为号

,,textfield又是;=,

//

UITextFieldViewModeAlways

输入框中的文本颜色

,,textfield只=[,];

//

,,textfield只=(,,);

//窗口,(只:文本框)才能;


UI中的控件