上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 167 下一页
摘要: // // ViewController.m // 04-了解-线程的状态 // // 创建线程是处于新建状态,start是就绪状态,会放入到可调度线程池里面(cpu看线程是否可以调用,是看线程是否在可调度线程池里面),cpu调度他的时候就会进入运行状态,当这个线程的时间片用完之后,进入就绪状态。所以调用了start方法之后,线程会在运行状态和就绪状态之间进行来回的切换。当线程调用slee... 阅读全文
posted @ 2017-09-07 18:47 无天666 阅读(346) 评论(0) 推荐(0)
摘要: // // ViewController.m // 03-掌握-NSThread基本使用 #import "ViewController.h" #import "XMGThread.h" @interface ViewController () @end @implementation ViewController -(void)touchesBegan:(NSSet *)touc... 阅读全文
posted @ 2017-09-07 14:05 无天666 阅读(231) 评论(0) 推荐(0)
摘要: pthread(线程库,很早就有的技术,了解):一套通用的多线程API适用于Unix\Linux\Windows等系统(java开发也有pthread)跨平台\可移植使用难度大(全是C函数) C语言 程序员管理线程生命周期,几乎不用 NSThread(掌握):使用更加面向对象简单易用,可直接操作线程 阅读全文
posted @ 2017-09-07 11:30 无天666 阅读(286) 评论(0) 推荐(0)
摘要: 进程是指在系统中正在运行的一个应用程序(一个程序可以对应多个进程)。每个进程之间是独立的,每个进程均运行在其专用且受保护的内存空间内。比如同时打开迅雷、Xcode,系统就会分别启动2个进程。1个进程要想执行任务,必须得有线程(进程是线程组成的,进程的所有任务都是线程完成的,每1个进程至少要有1条线程 阅读全文
posted @ 2017-09-07 11:00 无天666 阅读(230) 评论(0) 推荐(0)
摘要: // // ViewController.m // UIScrollVIew #import "ViewController.h" @interface ViewController () @property (weak, nonatomic) IBOutlet UIScrollView *scrollView;//已经设置大小是300*200 @property (weak, nona... 阅读全文
posted @ 2017-09-07 09:42 无天666 阅读(284) 评论(0) 推荐(0)
摘要: // // ViewController.h // 14-KVO的使用 #import @interface ViewController : UIViewController @end // // ViewController.m // 14-KVO的使用 // /* KVO: Key Value Observing (键值监听)--->当某个对象的属性值发生改变的... 阅读全文
posted @ 2017-09-06 18:49 无天666 阅读(194) 评论(0) 推荐(0)
摘要: // // main.m // 13-KVC的使用 // /** KVC: Key Value Coding(键值编码):1.取值赋值。2.字典转模型。 */ #import #import "XMGPerson.h" #import "XMGDog.h" int main(int argc, const char * argv[]) { @autoreleasep... 阅读全文
posted @ 2017-09-03 23:43 无天666 阅读(243) 评论(0) 推荐(0)
摘要: 控制器: UIImage的扩展,分类: 阅读全文
posted @ 2017-09-03 18:01 无天666 阅读(308) 评论(0) 推荐(0)
摘要: // // ViewController.m // 09-UIButton内部子控件的调整 // // Created by xiaomage on 15/12/30. // Copyright © 2015年 小码哥. All rights reserved. // #import "ViewController.h" #import "XMGButton.h" @interfac... 阅读全文
posted @ 2017-09-03 17:14 无天666 阅读(489) 评论(0) 推荐(0)
摘要: if (self.shopCarView.subviews.count == 0) { /* [UIView animateWithDuration:2.0 animations:^{ // 执行动画 self.showHUB.text = @"当前购物车已空,赶紧买买买~"; self.showHUB.a... 阅读全文
posted @ 2017-09-03 15:14 无天666 阅读(1441) 评论(0) 推荐(0)
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 167 下一页