- 博客(13)
- 收藏
- 关注
转载 html4 列表表单和杂项
UL 无序列表 用来表示一个列表的语义,并且每个项目和每个项目之间,是不分先后的 ul是英语无序的意思 li是列表的意思 <ul> <li></li> </ul> 这是个主标签,这是一对。ul只能包裹li,但是li是容器级的li...
2016-10-16 19:52:00
106
转载 多线程啊
- (void)viewDidLoad { [super viewDidLoad]; // _imageview=[[UIImageView alloc]init]; // _imageview.frame=CGRectMake(50, 50, 300, 300); ...
2016-09-06 19:55:00
91
转载 多线程
- (void)viewDidLoad { [super viewDidLoad]; _mutablearray=[NSMutableArray array]; _mutablearraytwo=[NSMutableArray array]; NSLog...
2016-09-06 19:54:00
76
转载 客户端
#include<sys/socket.h> #include<netinet/in.h> #include <arpa/inet.h> #include <pthread.h> pthread_t thread[2]; int fd;...
2016-09-05 19:28:00
82
转载 服务器
#include <sys/socket.h>//提供socket函数以及数据结构 #include<netinet/in.h>//定义数据结构 #include <arpa/inet.h>//提供ip地址转换函数 #include <pthre...
2016-09-05 19:27:00
55
转载 8.4web http
NSURL*url=[NSURL URLWithString:@"https://api.heweather.com/x3/citylist?search=allchina&key=415ad31dce824979897e25f8a06b0b18"]; //发送请求 ...
2016-09-01 20:19:00
87
转载 CAaimatioGroup 动画组合
1.初始化 Calayer*kklayer=[[CALayer alloc]init]; kklayer.backgrounColor-[[UIColor grayColor]CGColor]; kklayer.fram=CGRectMake(50.50.100.200)...
2016-09-01 20:14:00
75
转载 用layer画图
1.创建一个继承与calayer的类 2写方法,系统会自动进入不用调用把需要画的图画在这个方法里 -(void)drawInContext:(CGContextRef)ctx 2创建一个继承与uiview的类 并且引入 继承与calayer的类 3.写构造函数 在这个函数里 设置继...
2016-08-31 20:20:00
312
转载 视频播放
1.添加<AVFoundation/AVFoundation.h>框架 <AVKit/AVKit.h>框架 2添加视频素材 3接收视频的路径 NSString*path=[[NSBundle mainBundle]pathForResource:@"1....
2016-08-30 19:42:00
141
转载 播放音频 音乐
播放音乐 1引入AVFoundation框架 2添加音乐素材 3获取音乐素材的路径 NSString*str=[[NSBundle mainBundle]pathForResource:[NSString stringWithFormat:@"%@.mp3",sender.titleL...
2016-08-29 19:55:00
115
转载 画圆 画曲线 画图跟水印
画曲线 CGContextRef context=UIGraphicsGetCurrentContext(); CGContextMoveToPoint CGContextAddCurveToPoint CGContextStrokePath 画圆形的图 UIImage*ima...
2016-08-25 19:45:00
122
转载 2d画图
-(void)drawrect:(CGRect)rect { 这个方法不用调用,系统自己会调用 [self drawlinefor]; } 自定义一个方法 -(void)drawline { CGContextRef context=UIGraphicsGetCurr...
2016-08-24 19:47:00
201
转载 coredata数据库
core data数据持久化储存的最佳的方式 core data以面向对象的方式储存和管理数据 NSManagedObjectContext 作用就是:插入数据,查询数据,删除数据 NSFetchRequest 相当于查询语句 //这个就是取上下文的对象 Appdelegate...
2016-08-23 19:52:00
108
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人