![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OC
Jaydon_mc
仅当做学习笔记,方便查阅
展开
-
LeetCode(三)无重复字符的最长子串(Longest Substring Without Repeatinng Characters )--------(OC版本)
Given a string, find the length of thelongest substringwithout repeating characters.Example 1:Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2:Input...原创 2019-03-19 21:20:08 · 203 阅读 · 0 评论 -
NSTimer循环引用
NSTimer循环引用+ (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(nullable id)userInfo repeats:(BOOL)yesOrNo;开发过程中肯定会用到计时器,一般都会选择NSTimer,由于time...原创 2019-06-21 14:49:51 · 217 阅读 · 0 评论 -
RunLoop
1. 简介 RunLoop可以理解为一个do-while循环:function loop(){ initialize(); do{ event = getEvent(); HandleEvent(event); }while(isWeakUp); }当然肯定还有一些其他的处理逻辑在内部,才能保证其一一对应的线程能够在有任务时被唤醒,没有任务时休眠。OSX/iOS系统提供...原创 2019-06-21 15:50:40 · 477 阅读 · 0 评论 -
事件传递和响应机制
苹果文档https://developer.apple.com/documentation/uikit?language=objc(一)事件传递过程苹果注册了一个source1(基于mach port)用来接收系统事件,其回调函数为_IOHIDEventSystemClientQueueCallback()。当一个硬件事件(触摸、摇晃锁屏等)发生后,首先由IOKit.framework生成一...原创 2019-06-25 18:12:07 · 740 阅读 · 0 评论 -
HTTP和TCP协议,三次握手四次挥手
一、HTTP是什么http(HyperText Transfer Protocol),超文本传输协议,是互联网上最广泛的一种网络传输协议,所有www文件都必须遵守的一个标准,是以ASCII码传输,建立在TCP/IP协议上的应用层规范。用于从www服务器传输超文本到本地浏览器的传输协议。HTTP是采用明文形式进行数据传输。http可以说成是一种客户端和应答服务器端请求和应答的标准((TCP)。通...原创 2019-07-15 17:04:03 · 378 阅读 · 0 评论