- 3
- 0
- 约5.31千字
- 约 6页
- 2015-09-26 发布于重庆
- 举报
UITextField的使用
UITextField 讲解
一.基本属性设置
1. 创建一个文本输入框
UITextField*textField=[[UITextField
alloc]initWithFrame:CGRectMake(10, 30, 300, 30)];
2. 设置边框样式
textField.borderStyle = UITextBorderStyleRoundedRect;//
圆角
typedef enum {
UITextBorderStyleNone,无边框
UITextBorderStyleLine,有边框
UITextBorderStyleBezel,有边框和阴影
UITextBorderStyleRoundedRect圆角
} UITextBorderStyle;
3.背景颜色是文本内容部分的颜色
textField.backgroundColor = [UIColor blueColor];
4. 设置背景图片
textField.background= [UIImage imageNamed:@Icon.png];
5.提示文字
textField.pl
您可能关注的文档
- SPCC冷轧薄板退火工艺的优化与性能分析.pdf
- Speaker Localization for Microphone ArrayBased ASR The Effects of Accuracy on Overlapping.pdf
- SPEECH OGLE Indexing Uncertainty for Spoken Document Search.pdf
- Speeding up the Evaluation of Multimedia Streaming Applications in MANETs using HMMs ABSTRA.pdf
- Speex语音编码算法实现与优化.pdf
- Speculative Trading and Stock Prices An Analysis of Chinese AB Share Premia.pdf
- Spend__cost__pay___take区别及练习题.doc
- Spectral Dynamics of the Velocity Gradient Field in Restricted Flows.pdf
- Spidering and Filtering Web Pages for Vertical Search Engines Porter, M.F. “An algorithm f.pdf
- Spinfield Interaction Effects and Loop Dynamics in AdSCFT Duality.pdf
原创力文档

文档评论(0)