2018年2月22日

Objective-C language

摘要: Objective-C is the primary language used to write Mac software. If you're comfortable with basic object-oriented concepts and the C language, Objectiv 阅读全文

posted @ 2018-02-22 16:30 东方🐺 阅读(232) 评论(0) 推荐(0) 编辑

Objective-C Protocols

摘要: Objective-C allows you to define protocols, which declare the methods expected to be used for a particular situation. Protocols are implemented in the 阅读全文

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

Objective-C Log Handling

摘要: NSLog method In order to print logs, we use the NSLog method in Objective-C programming language which we have used right from the Hello World example 阅读全文

posted @ 2018-02-22 16:03 东方🐺 阅读(274) 评论(1) 推荐(0) 编辑

AFNetworking 一般用法

摘要: AFNetworking是一个用于iOS、macOS、watchOS和tvOS的功能强大的网络库。它构建在基础URL加载系统之上,扩展了强大的高级网络抽象,并将其构建为Cocoa。它有一个模块化的架构,设计良好,具有强大功能的api 使用 CocoaPods 引入 创建一个下载任务 创建一个上传任务 阅读全文

posted @ 2018-02-22 15:36 东方🐺 阅读(362) 评论(0) 推荐(0) 编辑

iOS 锁的常用方法

摘要: 锁的用法在iOS中有几种方法来解决多线程访问同一个内存地址的互斥同步问题: 方法一,@synchronized(id anObject),(最简单的方法)会自动对参数对象加锁,保证临界区内的代码线程安全 方法二,NSLockNSLock对象实现了NSLocking protocol,包含几个方法:l 阅读全文

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

导航