![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS/Objective-C/Swift
文章平均质量分 52
kuyeluofan
这个作者很懒,什么都没留下…
展开
-
Objective-C Programming: The Big Nerd Ranch Guide (2nd Edition) 阅读笔记(Part I & II)
VariablesandTypesshort , int , longfloat , doubleCharpointerA pointer holds a memory address.It is declared using the asterisk character.For example,a variable declared as int * ca原创 2015-04-29 13:55:37 · 916 阅读 · 0 评论 -
责任链模式在 iOS 中的应用
名称责任链模式 Chain of Responsibility Pattren用途让多个对象有机会处理某个请求(UI 响应链、Planck 中间件、流式业务流程(OA)、过滤器)。实现为某个请求创建一个对象链,每个对象依次检查次请求并对其进行处理,或者将它传递给链中的下一个对象。链的实现:使用现成的链(如继承关系)或自己实现新链(next指针)链上的每个对象都采...原创 2018-05-27 10:24:02 · 1076 阅读 · 0 评论 -
LLDB学习笔记
常用命令po 打印对象,p 打印基础数据类型expo 可以在调试时动态执行指定表达式,并将结果打印出来(常用于调试过程中修改变量的值;expr 也可以声明一个新变量对象 eg. expr int $b = 2 (对象名前要加”$")call 是调用功能,po / p 实际也会产生调用。因此一般只在不需要输出或者无返回值的方法时使用call eg. call [self.view setBa原创 2015-10-27 17:37:02 · 417 阅读 · 0 评论 -
Attributed String学习笔记
在实习中要实现下图中NavigationBar上的效果,经过考虑后认为使用NSAttributedString最为合适根据官方文档介绍,Attributed string objects可以拥有一些字符串的属性(如字体、间距等)并将其选择性的应用到相关联的字符串上。比如图中的字符串就是通过取出换行符前后两部分的NSRange,再分别应用不同fontsize实现的。N原创 2015-08-31 14:13:16 · 1302 阅读 · 0 评论 -
iOS 学习笔记 - App 的启动过程(无Storyboard)
Main.m中的 main函数生成并返回一个 UIApplication和一个AppDelegate的实例UIApplication的实例是一个 applicationobject,负责管理 event loop和协调其他高级别的 app行为,app启动完毕后,它会发送 didFinishLaunchingWithOptions:消息给 ap原创 2015-06-08 13:47:35 · 1136 阅读 · 0 评论 -
iOS Programming: The Big Nerd Ranch Guide (4th Edition) 阅读笔记-关于View和View Hierarchy
关于 ViewView是UIView(或其子类)的一个实例View负责对自己的绘制View处理如触摸等事件View存在于某个 View Hierarchy,且 View Hierarchy的根为application的windowView既可以在Interface Builder,也可以在代码中创建 关于 ViewHi原创 2015-06-05 23:22:54 · 1061 阅读 · 0 评论 -
iOSProgramming: The Big Nerd Ranch Guide (4th Edition) 阅读笔记-关于 View 的 Redrawing 和 Run Loop
关于View的 Redrawing与 Run Loop当 application启动后,它会开始一个 run loop用以监听如触摸一类的事件。当事件触发时,run loop会寻找合适的处理事件方法,这个处理方法又会调用其他方法来处理,一旦所有方法被执行完毕,控制权会被交还给 run loop。当 run loop重新获得控制权后,它会检查一个名为 dirty原创 2015-06-07 10:30:19 · 509 阅读 · 0 评论 -
Objective-C Programming: The Big Nerd Ranch Guide (2nd Edition) 阅读笔记(Part IV)
• Your first iOS application ○ GUI-based application § A GUI-based application is event-driven. When the application is launched, it starts a run loop that sits and waits for events. Event原创 2015-05-18 09:55:21 · 899 阅读 · 0 评论 -
iOS Programming: The Big Nerd Ranch Guide (4th Edition) 阅读笔记-关于 View Controllers及其生命周期
View ControllerView controller管理一个 view hierarchy,它负责创建 view对象以形成 hierarchy、处理该 hierarchy 中有关于 view的事件、并且将该 hierarchy添加到 window中。 View controller有UIView *view属性指向一个 view,该 view原创 2015-06-18 15:25:03 · 1266 阅读 · 0 评论 -
Objective-C Programming: The Big Nerd Ranch Guide (2nd Edition) 阅读笔记(Part V)
InitYou send the init message to the new instance so that it can initialize its instance variables to usable values; alloc creates the space for an object, and init makes the object ready to wo原创 2015-05-21 15:47:39 · 1050 阅读 · 0 评论 -
Objective-C Programming: The Big Nerd Ranch Guide (2nd Edition) 阅读笔记(Part III)
• Objects ○ An object is similar to a struct, it can contain several pieces of related data. In a struct, we called them member. In an object, we call them instance variables.(or ivars)原创 2015-05-16 01:35:33 · 1459 阅读 · 0 评论 -
Cocoa Design Patterns 读书笔记 -- MVC 篇
I: One Pattern to Rule Them All 什么是 MVC?MVC 存在的意义以及它是如何被应用在 Cocoa Programing 中的。 1. Model View Controller 大多数的应用的职责和行为都是获取和存储信息并将之展示给用户,同时用户可以对此进行一系列操作。 因此在面向对象的模式中,可以将应用划分为以下子模块: ● Model ...原创 2018-05-29 08:47:11 · 261 阅读 · 1 评论