会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一只简单的码农
博客园
首页
新随笔
联系
订阅
管理
随笔 - 14
文章 - 0
评论 - 0
阅读 -
2582
2015年8月10日
类对象序列化
摘要: 1.使用序列化需要在对象中实现NSCoding协议NSCoding协议方法:encodeWithCoder和initWithCoder,将一个对象序列化需要实现这2个方法。@protocol NSCoding- (void)encodeWithCoder:(NSCoder *)aCoder;-(vo...
阅读全文
posted @ 2015-08-10 21:21 一只简单的码农
阅读(163)
评论(0)
推荐(0)
2015年8月9日
序列化与反序列化(NSDictionary),监听键盘
摘要: @interface ViewController ()#define FileName @"Student.plist"#define KName @"KName"#define KBirth @"KBirth"#define KSex @"KSex"#define KNumber @"KNumb...
阅读全文
posted @ 2015-08-09 23:10 一只简单的码农
阅读(414)
评论(0)
推荐(0)
iOS沙盒
摘要: 1.每个应用程序都有自己的存储空间。2.应用程序不能访问其他程序的存储空间。3.应用程序请求的数据都要通过权限检测,不符合条件的不被允许。默认,沙盒有3个目录:Documents:应用程序将其数据存储在documents中。Library:基于NSUserDefaults的首选项设置存储在Libra...
阅读全文
posted @ 2015-08-09 21:43 一只简单的码农
阅读(143)
评论(0)
推荐(0)
2015年8月6日
UITableViewCell
摘要: 1.Push跳转- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellKey=@"cellKey...
阅读全文
posted @ 2015-08-06 20:54 一只简单的码农
阅读(227)
评论(0)
推荐(0)
2015年8月5日
UITableView(支持索引的分组表)
摘要: 重载函数:-(NSArray *) sectionIndexTitlesForTableView: (UITableView *) tableView{ //dict allKeys取出的key arr无顺序,需进行排序 NSArray *arr = [[self.words allKeys] ...
阅读全文
posted @ 2015-08-05 21:33 一只简单的码农
阅读(95)
评论(0)
推荐(0)
UITableView
摘要: 1.代理 UITableViewDelegate,UITableViewDataSource2.实现代理- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ return 1; //分区数,默认为1}- (NSI...
阅读全文
posted @ 2015-08-05 20:34 一只简单的码农
阅读(127)
评论(0)
推荐(0)
2015年8月3日
UIDatePicker,UIPickerView,MultiComponentPicker
摘要: UIDatePicker属性:Mode:Date and TimeLocale:Interval:最大值,最小值 NSDate *date=[self.dataPicker date]; NSDateFormatter *formatter=[[NSDateFormatter alloc...
阅读全文
posted @ 2015-08-03 22:20 一只简单的码农
阅读(140)
评论(0)
推荐(0)
UITabBarController
摘要: 1.组成最下层是:tabbar 中间是:custom content 最上面:Tab bar controller viewTab Bar上面显示的每一个Tab都对应着一个View Controller.ViewController本身具有一个tabBarItem属性,只要设置它,就能改变Tab B...
阅读全文
posted @ 2015-08-03 16:29 一只简单的码农
阅读(136)
评论(0)
推荐(0)
2015年8月1日
动画 animation
摘要: [UIView beginAnimations:@"trun" context:nil];//开始一个动画 [UIView setAnimationDuration:1]; //动画的时间 [UIView setAnimationCurve:U...
阅读全文
posted @ 2015-08-01 23:04 一只简单的码农
阅读(188)
评论(0)
推荐(0)
委托,协议(代理模式)
摘要: 1.delegate传值,传事件。1、避免子类化带来的过多的子类以及子类与父类的耦合2、通过委托传递消息机制实现分层解耦eg.代理#import @class Children; @protocol ChildrenDelegate @required- (void)Eat:(Children *...
阅读全文
posted @ 2015-08-01 15:46 一只简单的码农
阅读(199)
评论(0)
推荐(0)
下一页
公告
昵称:
一只简单的码农
园龄:
9年10个月
粉丝:
0
关注:
0
<
2025年6月
>
日
一
二
三
四
五
六
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
随笔档案
2015年8月(11)
2015年7月(3)
阅读排行榜
1. 序列化与反序列化(NSDictionary),监听键盘(414)
2. iOS UITextField使用介绍(281)
3. UIAlertView 简单介绍(260)
4. UITableViewCell(227)
5. 委托,协议(代理模式)(199)
点击右上角即可分享