2018年2月9日

Objective-C Loops

摘要: There may be a situation, when you need to execute a block of code several number of times. In general, statements are executed sequentially: The firs 阅读全文

posted @ 2018-02-09 17:35 东方🐺 阅读(280) 评论(0) 推荐(0) 编辑

iOS之核心动画

摘要: 一、核心动画概念 -导入QuartzCore.framework框架 1⃣ 开发步骤1.初始化一个动画对象(CAAnimation)并且设置一些动画相关属性 2.CALayer中很多属性都可以通过CAAnimation实现动画效果,包括:opacity、position、transform、boun 阅读全文

posted @ 2018-02-09 17:09 东方🐺 阅读(236) 评论(0) 推荐(0) 编辑

UIView动画效果之----翻转.旋转.偏移.翻页.缩放.取反的动画效

摘要: 翻转的动画 旋转动画 偏移动画 翻页动画 缩放动画 取反的动画效果是根据当前的动画取他的相反的动画 阅读全文

posted @ 2018-02-09 16:43 东方🐺 阅读(482) 评论(0) 推荐(0) 编辑

iOS Runloop 消息循环

摘要: 介绍 Runloop是一种事件监听循环,可以理解成一个while死循环,监听到事件就起来,没有就休息。 Runloop可以在不同模式下进行切换,iOS有五种模式,其中UIInitializationRunLoopModel应用程序启动时会使用,启动完成后将不再使用;GSEventReceiveRun 阅读全文

posted @ 2018-02-09 16:35 东方🐺 阅读(386) 评论(0) 推荐(0) 编辑

Objective-C Fast Enumeration

摘要: Fast enumeration is an Objective-C's feature that helps in enumerating through a collection. So in order to know about fast enumeration, we need know 阅读全文

posted @ 2018-02-09 11:24 东方🐺 阅读(117) 评论(0) 推荐(0) 编辑

Obj-C Memory Management

摘要: Memory management is one of the most important process in any programming language. It is the process by which the memory of objects are allocated whe 阅读全文

posted @ 2018-02-09 11:15 东方🐺 阅读(326) 评论(0) 推荐(0) 编辑

设计模式 - 黑板模式

摘要: 黑板模式的意图 黑板模式(Blackboard Design Pattern)是观察者模式的一个扩展,知名度并不高,但是我们使用的范围却非常广。黑板模式的意图如下: 允许消息的读写同时进行,广泛地交互消息。 简单地说,黑板模式允许多个消息读写者同时存在,消息的生产者和消费者完全分开。这就像一个黑板, 阅读全文

posted @ 2018-02-09 11:07 东方🐺 阅读(823) 评论(0) 推荐(0) 编辑

查找算法(顺序查找、二分法查找、二叉树查找、hash查找)

摘要: 查找功能是数据处理的一个基本功能。数据查找并不复杂,但是如何实现数据又快又好地查找呢?前人在实践中积累的一些方法,值得我们好好学些一下。我们假定查找的数据唯一存在,数组中没有重复的数据存在。 (1)顺序查找(普通的数据查找) 设想有一个1M的数据,我们如何在里面找到我们想要的那个数据。此时数据本身没 阅读全文

posted @ 2018-02-09 11:06 东方🐺 阅读(10815) 评论(0) 推荐(4) 编辑

设计模式 - 观察者模式

摘要: 什么是观察者模式 概念:一个对象状态改变,通知正在对他进行观察的对象,这些对象根据各自要求做出相应的改变。 图解:操作对象向被观察者对象投送消息,使得被观察者的状态得以改变,在此之前已经有观察者向被观察对象注册,订阅它的广播,现在被观察对象将自己状态发生改变的消息广播出来,观察者接收到消息各自做出应 阅读全文

posted @ 2018-02-09 11:06 东方🐺 阅读(263) 评论(0) 推荐(0) 编辑

Objective-C Operators and Expressions

摘要: What is an Expression? The most basic expression consists of an operator, two operands and an assignment. The following is an example of an expression 阅读全文

posted @ 2018-02-09 11:05 东方🐺 阅读(285) 评论(0) 推荐(0) 编辑

Objective-C Numbers

摘要: In Objective-C programming language, in order to save the basic data types like int, float, bool in object form, Objective-C provides a range of metho 阅读全文

posted @ 2018-02-09 11:05 东方🐺 阅读(140) 评论(0) 推荐(0) 编辑

iOS 通知、本地通知和推送通知有什么区别? APNS机制。

摘要: 本地/推送通知为不同的需要而设计。本地通知对于iPhone,iPad或iPod来说是本地的。而推送通知——来自于设备外部。它们来自远程服务器——也叫做远程通知——推送给设备上的应用程序(使用APNs)同时可以查看消息或下载数据。 APNS: 苹果推送通知服务 “Apple Push Notifica 阅读全文

posted @ 2018-02-09 10:51 东方🐺 阅读(1732) 评论(0) 推荐(0) 编辑

导航