11 2017 档案

摘要:一、绝对布局、layoutsubviews。 二、父视图相对布局 注意:Autoresizing只能设置父子视图之间的关系,也就是说,Autoresizing只能控制子视图和父视图之间的位置/大小关系。Autoresizing不能设置兄弟视图之间的关系,当然也不能设置完全不相关的两个视图之间的关系。 阅读全文
posted @ 2017-11-30 18:59 zzfx 阅读(274) 评论(0) 推荐(0) 编辑
摘要:The Runtime Interaction Model for Views Any time a user interacts with your user interface, or any time your own code programmatically changes somethi 阅读全文
posted @ 2017-11-30 18:19 zzfx 阅读(299) 评论(0) 推荐(0) 编辑
摘要:margin与padding如何进行区分,这是很多学html人的困扰,其实说白了padding 就是内容与边框的空隙。而margin则是模块与模块的空隙。[3] 阅读全文
posted @ 2017-11-30 14:55 zzfx 阅读(326) 评论(0) 推荐(0) 编辑
摘要:A regular expression, regex or regexp[1] (sometimes called a rational expression)[2][3] is, in theoretical computer science and formal language theory 阅读全文
posted @ 2017-11-28 19:10 zzfx 阅读(288) 评论(0) 推荐(0) 编辑
摘要:1)操作非法、操作受限; 2)数据非法、数据不支持; 3)操作的上下文环境被破坏。 阅读全文
posted @ 2017-11-24 17:41 zzfx 阅读(973) 评论(0) 推荐(0) 编辑
摘要:应用崩溃时,崩溃线程一定有重要线索保留。正如谋杀现场,当事人和被害者已经交互细节需要保留一样。 应用崩溃现场需要保存和还原的信息分为三个方面: 1)硬件环境:主要是cpu位数和其他信息; 2)进程信息:主要是进程标示符号; 3)线程信息,也就是线程执行是的上下文环境。比较主要的指标是(1)函数调用栈 阅读全文
posted @ 2017-11-24 17:27 zzfx 阅读(201) 评论(0) 推荐(0) 编辑
摘要:In computing, a context switch is the process of storing and restoring the state (more specifically, the execution context) of a process or thread so 阅读全文
posted @ 2017-11-24 17:07 zzfx 阅读(177) 评论(0) 推荐(0) 编辑
摘要:1)线程存在的目的:提高cpu的使用效率; 2)线程实现模型:用户线程、内核线程; 3)线程谁在持有:内核维护线程列表、进程维护线程列表、应用维护线程池; 4)线程的数据结构属性:tcb结构、线程属性结构等; 5)线程的运行时:调度与切换; 6)线程的业务与数据侧面:本质上是数据处理流; 7)线程的 阅读全文
posted @ 2017-11-24 16:56 zzfx 阅读(148) 评论(0) 推荐(0) 编辑
摘要:作者:阿波链接:http://blog.csdn.net/livelylittlefish/article/details/7918110 (整半年没有更新,发几篇以前的读书笔记。) Content 1. 基础概念 2. 线程安全 3. 可重入 4. 并发系统基本功能 1. 基础概念 线程 进程里执 阅读全文
posted @ 2017-11-24 16:27 zzfx 阅读(233) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/gatieme/article/details/51892437 之前讲解过内核线程、轻量级进程、用户线程三种线程概念解惑(线程≠轻量级进程), 但是一直对其中提到的线程的实现模型比较迷惑, 这次就花了点时间怎么学习了一下子 1 线程的3种实现方式 在传统的 阅读全文
posted @ 2017-11-24 15:45 zzfx 阅读(5519) 评论(2) 推荐(2) 编辑
摘要:结论:线程崩溃不一定导致进程崩溃。 线程崩溃的本质就是内存出错。而内存出错有时不会引起其他线程出错的,因为崩溃的线程,也就是出错的内存有时侯没有被其他线程访问,也就不会产生问题,但有时候会打乱其他线程的内存。 https://bbs.csdn.net/topics/330102295 阅读全文
posted @ 2017-11-23 16:47 zzfx 阅读(3238) 评论(0) 推荐(1) 编辑
摘要:符号表将标识符和其类型、位置关联起来,当我们去处理变量,函数的声明时,就是将这些信息组织(绑定)起来,放在表里,当需 要知道这些函数,变量的意义时,就去这个表里查。 重定位。链接器把每个符号定义与一个虚拟地址联系起来,然后修改所有对这些符号的引用,使得它们指向这个存储位置,从而重定位这些节。 一般来 阅读全文
posted @ 2017-11-23 16:42 zzfx 阅读(1061) 评论(0) 推荐(0) 编辑
摘要:PS:EBP是当前函数的存取指针,即存储或者读取数时的指针基地址;ESP就是当前函数的栈顶指针。每一次发生函数的调用(主函数调用子函数)时,在被调用函数初始时,都会把当前函数(主函数)的EBP压栈,以便从子函数返回到主函数时可以获取EBP。 下面是按调用约定__stdcall 调用函数test(in 阅读全文
posted @ 2017-11-23 16:10 zzfx 阅读(541) 评论(0) 推荐(0) 编辑
摘要:The stack frame at the top of the stack is for the currently executing routine. The stack frame usually includes at least the following items (in push 阅读全文
posted @ 2017-11-23 15:55 zzfx 阅读(177) 评论(0) 推荐(0) 编辑
摘要:https://en.wikipedia.org/wiki/Call_stack#STACK-FRAME In computer science, a call stack is a stack data structure that stores information about the act 阅读全文
posted @ 2017-11-23 15:51 zzfx 阅读(385) 评论(0) 推荐(0) 编辑
摘要:http://en.citizendium.org/wiki/Stack_frame In computer science, a stack frame is a memory management strategy used to create and destroy temporary (au 阅读全文
posted @ 2017-11-23 15:44 zzfx 阅读(272) 评论(0) 推荐(0) 编辑
摘要:http://en.citizendium.org/wiki/Stack_frame To use a stack frame, a thread keeps two pointers, often called the Stack Pointer (SP), and the Frame (FP) 阅读全文
posted @ 2017-11-23 15:42 zzfx 阅读(690) 评论(0) 推荐(0) 编辑
摘要:In computer science, a symbol table is a data structure used by a language translator such as a compiler or interpreter, where each identifier (a.k.a. 阅读全文
posted @ 2017-11-22 19:03 zzfx 阅读(375) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/aigoogle/article/details/45076617 在编译程序中符号表用来存放语言程序中出现的有关标识符的属性信息,这些信息集中反映了标识符的语义特征属性。在词法分析及语法在分析过程中不断积累和更新表中的信息,并在词法分析到代码生成的各阶段, 阅读全文
posted @ 2017-11-22 16:09 zzfx 阅读(3904) 评论(0) 推荐(0) 编辑
摘要:有时候我们会有需求从一个字符串中截取其他的字符串,根据情况的不同,我们来分析几种方法~~ 一. 固定长度字符串中截取固定位置长度的字符串 // 这是比较简单的一种情况:比如截取手机号的后4位 let phoneNum = "18515383061" var suffixNum:String? // 阅读全文
posted @ 2017-11-21 19:33 zzfx 阅读(7052) 评论(0) 推荐(0) 编辑
摘要:1)要素的个数; 2)要素布局和渲染的复杂度; 3)交互的复杂度。 本质上分为两种:要素的复杂度和联系的复杂度。 联系包含要素间布局的联系与交互的联系,已经和外部上下文的联系。 阅读全文
posted @ 2017-11-14 11:23 zzfx 阅读(390) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示