摘要: 用处:输入控件-(void)viewDidLoad{ [super viewDidLoad];//设置大小CGRect frame = CGRectMake(20,20,150,40);//实例化UITextFieldself.tf = [[UITextField alloc]initWithFra... 阅读全文
posted @ 2014-08-06 14:56 迷茫的程序小生 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 含义:当某个事件发生时,调用某个对象的某个方法一般情况下,对象就是target,方法就是actiontarget是controller,action是action使用方法:1,创建按钮2,在controller.h文件中声明action3,在controller.m文件中实现action3,给but... 阅读全文
posted @ 2014-08-06 14:37 迷茫的程序小生 阅读(286) 评论(0) 推荐(0) 编辑
摘要: -(void)viewDidLoad{//初始化self.btn1 = [UIBotton buttonWithType:UIButtonTypeRoundedRect];//设置大小self.btn1.frame = CGRectMake(20,20,100,50);//设置标题[self.btn... 阅读全文
posted @ 2014-08-06 14:17 迷茫的程序小生 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 从今天起,开始学习UIKit部分,在此做个记录,不会充分详细的解释细节,只是要做一个备忘一样的东西。1.UIView类继承自UIResponder继承自NSObject2.UIResponder类定义了一些操作3.UIView有三个属性: frame, bounds, center frame用于... 阅读全文
posted @ 2014-08-06 11:39 迷茫的程序小生 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 博文推荐:minglz in cnbolg 阅读全文
posted @ 2014-07-30 16:41 迷茫的程序小生 阅读(120) 评论(0) 推荐(0) 编辑