部分代码总结7.29
2011-07-29 14:19
281 查看
UItextfield *textfield =[ [uitextfield alloc] init]textfield .contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
textfield .contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;textfield .placeholder= @"+++";//值textfield.delegate = self;//设置委托,如果要要使用uitextfield的方法,则要使用委托,并且添加UITextFieldDelegate
无论添加什么都可以放到contentview上
UIView *contentView = [[UIView alloc] initWithFrame:CGRectMake(380, 60, 610, 650)];
self.view = contentView;
bgImageView.userInteractionEnabled = YES;//背景图片可以操作
textfield .contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;textfield .placeholder= @"+++";//值textfield.delegate = self;//设置委托,如果要要使用uitextfield的方法,则要使用委托,并且添加UITextFieldDelegate
无论添加什么都可以放到contentview上
UIView *contentView = [[UIView alloc] initWithFrame:CGRectMake(380, 60, 610, 650)];
self.view = contentView;
bgImageView.userInteractionEnabled = YES;//背景图片可以操作
相关文章推荐
- 计蒜客-2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛-总结及部分代码
- 20145331 《信息安全系统设计基础》第5周学习实践部分总结及代码分析
- 关于git 账户配置以及代码克隆的部分总结
- u-boot_smdkv210 分析四:启动代码汇编部分总结
- IOS常用代码总结 - 第三方库部分
- PostgreSQL共享缓冲区部分代码阅读总结(一)
- Ajax (部分二:prototype.js代码后半部分)自己做的,总结页面向后台传Form值、单个值和后台向前台传一个或是一组值
- geotools 使用 部分代码总结
- c++串口上位机调试助手的总结和部分代码
- 思途旅游框架部分代码说明总结
- Ajax (部分二:prototype.js代码前半部)自己做的,总结页面向后台传Form值、单个值和后台向前台传一个或是一组值
- u-boot_smdkv210 分析四:启动代码汇编部分总结
- GIS的学习(二十六)geotools 使用 部分代码总结
- Ajax (部分二:prototype.js代码后半部分)自己做的,总结页面向后台传Form值、单个值和后台向前台传一个或是一组值
- Ajax (部分二:prototype.js代码)总结页面向后台传Form值、单个值和后台向前台传一个或是一组值
- Delphi listview使用部分总结代码
- 工作笔记总结——后台代码部分
- Ajax (部分二:prototype.js代码前半部)自己做的,总结页面向后台传Form值、单个值和后台向前台传一个或是一组值
- u-boot_smdkv210 分析四:启动代码汇编部分总结
- 第二章后续部分代码,总结