上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: –finishedSelectedImage返回选中时的图表–finishedUnselectedImage返回为选中时的图表–setFinishedSelectedImage:withFinishedUnselectedImage:设置选中时和为选中时的图表 阅读全文
posted @ 2013-08-08 12:50 火红的云彩 阅读(114) 评论(0) 推荐(0) 编辑
摘要: iphone程序的生命周期分析 做iphone开发首先第一件就是得知道iphone程序的生命周期,说白点就是当点击程序图标启动程序开始到退出程序整个使用运行过程中底下的代码都发生了什么,只有理解了这个才能游刃有余的掌握Iphone程序的开发,否则在写程序的时候有点浑浑僵僵不知所以然的感觉。首先忘记Xcode给我们生成的代码模板,忘记xib忘记ib,我们亲自一行一行来写一个HelloWorld程序,虽然真正开发项目的时候并不需要这样做Xcode模板和ib都会为我们做好这些打杂的事情,但是现在完全由我们自己来写,放心这个程序是个非常的简单的HelloWorld 程序,代码也很少总共加起来不过10几 阅读全文
posted @ 2013-08-07 08:30 火红的云彩 阅读(519) 评论(0) 推荐(0) 编辑
摘要: @protocol UIPickerViewDataSource@required// returns the number of 'columns' to displ 返回piker的列数- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView;// returns the # of rows in each component.. 返回每列的行数- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent 阅读全文
posted @ 2013-08-06 18:39 火红的云彩 阅读(487) 评论(0) 推荐(0) 编辑
摘要: View和viewController的生命周期一、ViewController的职责对内管理与之关联的View,对外跟其他ViewController通信和协调。对于与之关联的View,ViewController总是在需要的时候才加载视图,并在不需要的时候卸载视图,所以也同时担当了管理应用资源的责任二、ViewController的生命周期View是指Controller的View。它作为Controler的属性,生命周期在Controller的生命周期内。就是说你的Controller不能在view释放前就释放了。viewController的生命周期图需要说明的是:当你alloc并in 阅读全文
posted @ 2013-08-04 10:12 火红的云彩 阅读(897) 评论(0) 推荐(1) 编辑
摘要: 1.框架是有许多类,函数,方法,文档按照一定的逻辑组织起来的集合2. Foundation框架是所有框架的基础3.术语cocoa指的是foundation框架和appication kit框架4.术语cocoa touch指的是foundation框架和uikit框架5.熟悉foundation文档NSNumber可以将基本数据类型包装起来,形成一个对象,这样就可以给其发送消息,装入NSArray中等等。NSNumber * intNumber=[NSNumber numberWithInt:100];NSNumber *floatNumber=[NSNUmber numberWithFloa 阅读全文
posted @ 2013-08-01 23:39 火红的云彩 阅读(244) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页