摘要: 用处:选择日期或时间 当选择新的日期或时间的时候,值改变事件会被触发-(void)viewDidLoad{ CGRect frame = CGRectMake(20,20,320,100); self.datePicker = [[UIDatePicker alloc]initWithFrame... 阅读全文
posted @ 2014-08-07 16:53 迷茫的程序小生 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 用处: 菊花图仅有两个方法:[aiv startAnimating] [aiv stopAnimating]-(void)viewDidLoad{ [super viewDidLoad]; self.aiv = [[UIActivityIndicatorView alloc]init... 阅读全文
posted @ 2014-08-07 14:41 迷茫的程序小生 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 用处:进度条视图,用来显示某个任务的当前状态-(void)viewDidLoad{ [self viewDidLoad]; self.timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(... 阅读全文
posted @ 2014-08-07 13:56 迷茫的程序小生 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1.定义好的xib文件rootView.xib,选中files·owners 在class中选择对应的viewController2.如何在window中指定rootViewController------在appdelegate.h中声明属性 @property (strong,nonatomic... 阅读全文
posted @ 2014-08-07 10:02 迷茫的程序小生 阅读(231) 评论(0) 推荐(0) 编辑