会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
离子
博客园
首页
新随笔
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
15
下一页
2014年4月14日
ios-ASIHTTPRequest下载与进度条以及用观察者模式来监听进度条属性
摘要: UIProgressView *uiprogressview= [[UIProgressView alloc]initWithProgressViewStyle:UIProgressViewStyleBar];//建立一个进度条 uiprogressview.frame=CGRectMake(...
阅读全文
posted @ 2014-04-14 21:28 离子
阅读(756)
评论(0)
推荐(0)
2014年4月13日
ios-网络-ASIHTTPRequest并且设置缓存
摘要: 1.同步请求ASIHTTPRequest*request= [ASIHTTPRequest requestWithURL:url]; [request setRequestMethod:@"GET"]; [request setTimeOutSeconds:50]; [reque...
阅读全文
posted @ 2014-04-13 22:33 离子
阅读(412)
评论(0)
推荐(0)
ios-网络request请求
摘要: 1.同步请求 NSMutableURLRequest*urlrequest= [[NSMutableURLRequest alloc]init]; [urlrequest setURL:url]; [urlrequest setTimeoutInterval:60]; [urlreques...
阅读全文
posted @ 2014-04-13 19:56 离子
阅读(647)
评论(0)
推荐(0)
ios-http协议
摘要: 1.http:协议的生命周期,就是一次请求和一次响应,它不会与服务器长时间连接,这个只能是客户端方发起消息2.scocket协议它是与服务器长时间连接,这个双方都可以互相发送消息
阅读全文
posted @ 2014-04-13 18:45 离子
阅读(187)
评论(0)
推荐(0)
ios-NSRunLoop以及定时器NSTimer-理解
摘要: [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timeaction:) userInfo:@"liyang" repeats:NO]; NSTimer *tt= [NSTimer ti...
阅读全文
posted @ 2014-04-13 18:31 离子
阅读(1199)
评论(0)
推荐(0)
ios-网络
摘要: //多线程的几种方式,多线程是在调用结束之后就销毁了,主线程一直都在运行之中,所以不会销毁主线程,只有后台挂起1.需要自己启动的方式 NSString *str=@"liyang"; NSThread *thread= [[NSThread alloc]initWithTarget:sel...
阅读全文
posted @ 2014-04-13 16:33 离子
阅读(237)
评论(0)
推荐(0)
2014年4月11日
ios-数据库-sqlite-数据库得封装(自己写得,有很多不严谨)最后还有一个单例得实现
摘要: libsqlite3.0.dylib//使用的时候要先导入这个库staic UserDB* instance//UserDB是一个管理数据库的类+(void) shareInstance{ if(instance==nil) { instance=[[[self class]a...
阅读全文
posted @ 2014-04-11 21:38 离子
阅读(277)
评论(0)
推荐(0)
2014年4月9日
ios-表视图-问题
摘要: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ static NSString * cellIdentifier=@"cell";//...
阅读全文
posted @ 2014-04-09 22:48 离子
阅读(119)
评论(0)
推荐(0)
2014年4月8日
ios-表视图
摘要: 总体来说表视图有头部和尾部1.表视图分UITableViewStylePlain和UITableViewStyleGrouped 2种,其中grouped那种每组都分别有头部和尾部2.每一个cell也分来头部和尾部其中这些头部和尾部都是默认不显示的,要显示的话自己设置其中表视图的2种分类,UITab...
阅读全文
posted @ 2014-04-08 20:33 离子
阅读(167)
评论(0)
推荐(0)
2014年4月6日
ios-UITabBarControllerAndUINavigationController-用法
摘要: UINavigationController//是用一个数组来管理若干个子视图控制器的,下面2个东西是属于这个导航控制器的,可以控制其是否显示或者隐藏UINavigationBar//默认显示的UIBarButtonItemUIToolBar//默认隐藏的视图控制器出栈即死UITabBarContr...
阅读全文
posted @ 2014-04-06 15:02 离子
阅读(216)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
15
下一页
公告