![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UI
文章平均质量分 79
RunningZeroZZZ
不要在最能吃苦的时候选择安逸...
展开
-
UIView的基本控件
RunningZero原创,大家一起分享,一起学习,一起进步UIviewUIBotten(按钮)开辟空间 + 初始化[UIButton buttonWithType(枚举):UIButtonTypeSystem]按钮设置标题[setTitle: forState(枚举):]参数1:按钮的标题参数2:显示这个标题的状态 设置按原创 2016-01-09 14:47:26 · 559 阅读 · 0 评论 -
视图手势
原创 2016-01-09 16:24:06 · 349 阅读 · 0 评论 -
手势
self.view.backgroundColor = [UIColorwhiteColor]; UIImageView *imageView = [[UIImageViewalloc] initWithFrame:CGRectMake(0,0, 200, 300)]; imageView.center = self.view.cen原创 2016-02-05 23:01:15 · 396 阅读 · 0 评论 -
NSURLSession
// 拿到字符串,获取url NSString *string =@"http://a.vip.migu.cn/rdp2/v5.5/index.do?ua=Iphone_Sst&version=4.2421&pageno=1"; NSURL *url = [NSURLURLWithString:string];// 设置URL请求原创 2016-02-14 21:55:13 · 394 阅读 · 0 评论 -
JSON
txt文件名为MovieList.txt//解析数据时用这种方法不用每次运行时都改文件路径NSString *path = [[NSBundlemainBundle] pathForResource:@"MovieList"ofType:@"txt"]; NSData *data = [NSDatadataWithContentsOfFile:原创 2016-02-04 21:33:40 · 311 阅读 · 0 评论