摘要: UITextField的相关操作: 1 UITextField *tf = [[UITextField alloc] initWithFrame:CGRectMake(20, 60, 280, 70)]; 2 //文本输入框,一般用作用户输入账号,密码,个人信息等 3 4 ... 阅读全文
posted @ 2015-04-01 20:48 Angelone 阅读(190) 评论(0) 推荐(0) 编辑
摘要: UIView UIImageView的相关操作:1.初始化 UIView *view = [[UIView alloc] initWithFrame:CGRectMake(,,,)];2.查询某个view所有的子view,返回结果是数组 NSArray *subViews = [bigView su... 阅读全文
posted @ 2015-04-01 20:44 Angelone 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 一个小小的随机数工具。。。。。。。 1 self.view.backgroundColor = [UIColor yellowColor]; 2 3 UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(40, 40... 阅读全文
posted @ 2015-04-01 19:06 Angelone 阅读(125) 评论(0) 推荐(0) 编辑
摘要: UIButton的相关操作: 在实际的工作中,至少需要一个视图控制器(页面),不会直接往window上写UI,所有的UI都是写在视图控制器里的1.页面间的关联(写在AppDelegate中) HomeViewController *hvc = [[HomeViewController alloc] ... 阅读全文
posted @ 2015-04-01 18:54 Angelone 阅读(178) 评论(0) 推荐(0) 编辑
摘要: UILabel的相关操作:①初始化:UILabel是UIView的子类,拥有UIVi所有办法 UILable *label = [[UILabel alloc] initWithFrame:CGRectMake(,,,);②背景颜色 label.backgroundColor = [UIColor ... 阅读全文
posted @ 2015-04-01 17:11 Angelone 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 一个小的浏览器。。。。。。。。。有后退,前进,刷新,停止,转到,本地,调js1 _webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 40, self.view.frame.size.width, self.view.frame.siz... 阅读全文
posted @ 2015-04-01 16:04 Angelone 阅读(114) 评论(0) 推荐(0) 编辑