<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[PeaksLee的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/PeaksLee</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; PeaksLee]]></copyright><item><title><![CDATA[AFNetworking网络请求详解]]></title><link>https://blog.csdn.net/PeaksLee/article/details/126779290</link><guid>https://blog.csdn.net/PeaksLee/article/details/126779290</guid><author>PeaksLee</author><pubDate>Tue, 13 Sep 2022 12:09:17 +0800</pubDate><description><![CDATA[AFNetworking源码解读]]></description><category></category></item><item><title><![CDATA[iOS多线程的初步研究（十）-- dispatch同步]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78269819</link><guid>https://blog.csdn.net/PeaksLee/article/details/78269819</guid><author>PeaksLee</author><pubDate>Tue, 03 Jul 2018 09:39:27 +0800</pubDate><description><![CDATA[原文地址  http://www.cnblogs.com/sunfrog/p/3243230.html


GCD提供两种方式支持dispatch队列同步，即dispatch组和信号量。


一、dispatch组（dispatch group）
1. 创建dispatch组

dispatch_group_t group = dispatch_group_create(); 
]]></description><category></category></item><item><title><![CDATA[Facebook POP，迈向大师操作之路]]></title><link>https://blog.csdn.net/PeaksLee/article/details/49175585</link><guid>https://blog.csdn.net/PeaksLee/article/details/49175585</guid><author>PeaksLee</author><pubDate>Tue, 03 Jul 2018 09:38:17 +0800</pubDate><description><![CDATA[Facebook发布Paper之后，似乎还不满足于只是将其作为一个概念性产品，反而更进一步开源了其背后的动画引擎POP（https://github.com/facebook/pop），此举大有三年前发布的iOS UI框架Three20（https://github.com/facebookarchive/three20）的意味。而POP开源后不负Facebook的厚望，在GitHub上不足一个月]]></description><category></category></item><item><title><![CDATA[IOS 定制中间突出UItabBar]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78270077</link><guid>https://blog.csdn.net/PeaksLee/article/details/78270077</guid><author>PeaksLee</author><pubDate>Tue, 03 Jul 2018 09:38:07 +0800</pubDate><description><![CDATA[前言：

公司的项目需要定制一个中间突出的TabBar，在github 上找到一份可以参考的代码（虽然是四年前的，但是还是很有参考价值）。 网址：https://github.com/boctor/idev-recipes/tree/master/RaisedCenterTabBar。作者的readme文档写的很好，这里给出翻译（很不错的思路哦）

 

先看看效果：



思]]></description><category></category></item><item><title><![CDATA[四种常见的 POST 提交数据方式]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78270102</link><guid>https://blog.csdn.net/PeaksLee/article/details/78270102</guid><author>PeaksLee</author><pubDate>Tue, 03 Jul 2018 09:37:52 +0800</pubDate><description><![CDATA[HTTP/1.1 协议规定的 HTTP 请求方法有 OPTIONS、GET、HEAD、POST、PUT、DELETE、TRACE、CONNECT 这几种。其中 POST 一般用来向服务端提交数据，本文主要讨论 POST 提交数据的几种方式。

我们知道，HTTP 协议是以 ASCII 码传输，建立在 TCP/IP 协议之上的应用层规范。规范把 HTTP 请求分为三个部分：状态行、请求头、消息主]]></description><category></category></item><item><title><![CDATA[WebView与JS的几种交互]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78270119</link><guid>https://blog.csdn.net/PeaksLee/article/details/78270119</guid><author>PeaksLee</author><pubDate>Tue, 03 Jul 2018 09:37:37 +0800</pubDate><description><![CDATA[最近整理了一下原生与H5之间的交互方式，简单的做个总结。

OC端与JS的交互，大致有这几种：拦截协议、JavaScriptCore库、WKWebView、自定义NSURLProtocol拦截、WebViewJavascriptBridge。

JavaScriptCore一个iOS7引进的标准库，iOS7以前也有开发者自行导入使用。Web端也比较容易统一。
WebViewJavascriptBr]]></description><category></category></item><item><title><![CDATA[iOS警告收录及科学快速的消除方法]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78270135</link><guid>https://blog.csdn.net/PeaksLee/article/details/78270135</guid><author>PeaksLee</author><pubDate>Tue, 03 Jul 2018 09:37:26 +0800</pubDate><description><![CDATA[前言：现在你维护的项目有多少警告？看着几百条警告觉得心里烦么？你真的觉得警告又不是错误可以完全不管么？ 如果你也被这些问题困惑，可以和我一起进行下面的操作。其实大部分的警告都是很好改的，把自己整个项目的警告撸一遍应该也就耗费半小时的时间，一次麻烦带来之后的清净这样不好么？

本文分为三个部分：1.简单粗暴的消除警告。 2.详细科学的消除警告。（包括警告收录）  3.添加警告。

如果你不是]]></description><category></category></item><item><title><![CDATA[iOS 开发之照片框架详解]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78270140</link><guid>https://blog.csdn.net/PeaksLee/article/details/78270140</guid><author>PeaksLee</author><pubDate>Tue, 03 Jul 2018 09:37:13 +0800</pubDate><description><![CDATA[一. 概要

在 iOS 设备中，照片和视频是相当重要的一部分。最近刚好在制作一个自定义的 iOS 图片选择器，顺便整理一下 iOS 中对照片框架的使用方法。在 iOS 8 出现之前，开发者只能使用 AssetsLibrary 框架来访问设备的照片库，这是一个有点跟不上 iOS 应用发展步伐以及代码设计原则但确实强大的框架，考虑到 iOS7 仍占有不少的渗透率，因此 AssetsLibrary]]></description><category></category></item><item><title><![CDATA[iOS 获取系统相册内视频与图片（PhotoKit篇）]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78270146</link><guid>https://blog.csdn.net/PeaksLee/article/details/78270146</guid><author>PeaksLee</author><pubDate>Tue, 03 Jul 2018 09:37:01 +0800</pubDate><description><![CDATA[最近有点小忙，天天都在敲代码。学到了一大堆东西，后期我会和大家一起分享的。本期我主要是想将上期未完成的补全，所以本期整理的是PhotoKit的相关内容。
PhotoKit组成

PHAsset: 代表照片库中的一个资源，跟 ALAsset 类似，通过 PHAsset 可以获取和保存资源
PHFetchOptions: 获取资源时的参数，可以传 nil，即使用系统默认值
PHFetchResult:]]></description><category></category></item><item><title><![CDATA[关于iOS多线程，你看我就够了]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78270157</link><guid>https://blog.csdn.net/PeaksLee/article/details/78270157</guid><author>PeaksLee</author><pubDate>Tue, 03 Jul 2018 09:36:47 +0800</pubDate><description><![CDATA[在这篇文章中，我将为你整理一下 iOS 开发中几种多线程方案，以及其使用方法和注意事项。当然也会给出几种多线程的案例，在实际使用中感受它们的区别。还有一点需要说明的是，这篇文章将会使用 Swift 和 Objective-c 两种语言讲解，双语幼儿园。OK，let's begin!
概述
这篇文章中，我不会说多线程是什么、线程和进程的区别、多线程有什么用，当然我也不会说什么是串行、什么是并行等问题]]></description><category></category></item><item><title><![CDATA[两行代码搞定TableViewCell根据UILabel内容长度自动调整高度]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78270163</link><guid>https://blog.csdn.net/PeaksLee/article/details/78270163</guid><author>PeaksLee</author><pubDate>Tue, 03 Jul 2018 09:36:32 +0800</pubDate><description><![CDATA[此文解决的问题：如何根据cell中label的内容长短，自适应cell的高度？
我在解决这个问题时，搜索并且stackoverflow了很多类似问题，基本都是通过计算label中NSString的size，去返回高度。我也试了，但是计算出来的高度竟然总是不准确，且代码非常冗余。今天，终于google到一篇博文，完美解决了这个问题！Autolayout+两行代码，立即搞定。
首先，感谢那位作者，他的]]></description><category></category></item><item><title><![CDATA[意见反馈]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78960750</link><guid>https://blog.csdn.net/PeaksLee/article/details/78960750</guid><author>PeaksLee</author><pubDate>Wed, 03 Jan 2018 14:24:17 +0800</pubDate><description><![CDATA[如果对e大当家有意见请留言在当前页面！]]></description><category></category></item><item><title><![CDATA[14个Xcode中常用的快捷键操作]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78270063</link><guid>https://blog.csdn.net/PeaksLee/article/details/78270063</guid><author>PeaksLee</author><pubDate>Wed, 18 Oct 2017 10:28:15 +0800</pubDate><description><![CDATA[在Xcode 6中有许多快捷键的设定可以使得你的编程工作更为高效，对于在代码文件中快速导航、定位Bug以及新增应用特性都是极有效的。

当然，你戳进这篇文章的目的也在于想要快速的对代码文件进行操作，或者是让Xcode的各面板更为适应你小本子的屏幕。

在Xcode 6所有快捷键中下列这些是首当其冲应当学习的。在你学习到如何使用之后，也许就再也离不开它们了。

Xcode导航快捷键
]]></description><category></category></item><item><title><![CDATA[解决升级Xcode后插件失效问题]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78269957</link><guid>https://blog.csdn.net/PeaksLee/article/details/78269957</guid><author>PeaksLee</author><pubDate>Wed, 18 Oct 2017 10:20:53 +0800</pubDate><description><![CDATA[Xcode的插件对于开发者来说无疑是开发中的一大利器，让开发者能够将更多的时间和精力放在代码上面。但是开发者都会遇到一个问题，就是每次Xcode一更新，之前好不容易装好的插件全部不能用了，需要重新安装一遍，有时候还会因为某种原因导致即便安装了插件也不能使用的情况。在这里，我将跟大家分享我是如何解决这些问题的。

　　

　　首先,分析插件安装失效的一些原因：


系统安装了不止一个X]]></description><category></category></item><item><title><![CDATA[字符编码(UTF8转码)]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78269944</link><guid>https://blog.csdn.net/PeaksLee/article/details/78269944</guid><author>PeaksLee</author><pubDate>Wed, 18 Oct 2017 10:20:11 +0800</pubDate><description><![CDATA[1. ASCII码

我们知道，在计算机内部，所有的信息最终都表示为一个二进制的字符串。每一个二进制位（bit）有0和1两种状态，因此八个二进制位就可以组合出256种状态，这被称为一个字节（byte）。也就是说，一个字节一共可以用来表示256种不同的状态，每一个状态对应一个符号，就是256个符号，从0000000到11111111。

上个世纪60年代，美国制定了一套字符编码，对英语字符与]]></description><category></category></item><item><title><![CDATA[解决[UITextInputMode currentInputMode].primaryLanguage警告问题]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78269932</link><guid>https://blog.csdn.net/PeaksLee/article/details/78269932</guid><author>PeaksLee</author><pubDate>Wed, 18 Oct 2017 10:19:25 +0800</pubDate><description><![CDATA[两个办法：
1.如果单纯想去掉警告，那么将工程兼容支持到7.0以下就可以了

2.不使用[UITextInputMode currentInputMode].primaryLanguage，使用[[UIApplication sharedApplication]textInputMode].primaryLanguage替代就可以了;]]></description><category></category></item><item><title><![CDATA[iOS开发--一些UITabBarItem属性的设置]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78269913</link><guid>https://blog.csdn.net/PeaksLee/article/details/78269913</guid><author>PeaksLee</author><pubDate>Wed, 18 Oct 2017 10:18:22 +0800</pubDate><description><![CDATA[1.改变UITabBarItem 字体颜色[[UITabBarItemappearance]setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColorwhiteColor],UITextAttributeTextColor,nil]forState:UIControlStateNormal];[[UITabB]]></description><category></category></item><item><title><![CDATA[IOS开发—JS调用OC(通过非URL的方式)]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78269907</link><guid>https://blog.csdn.net/PeaksLee/article/details/78269907</guid><author>PeaksLee</author><pubDate>Wed, 18 Oct 2017 10:17:49 +0800</pubDate><description><![CDATA[这两天真是愁，早上6点起床从老家来公司，弄得一整天脑子都只有一个字围绕着我——“困”。﻿
﻿本来就很匆忙的项目，雪上加霜换需求，项目里面原来通过url与javastrip交互的全换了。项目的最低系统要求提升至7.0,“JavaScriptCore”这个framework终于可以用起来，虽然我也不知道它为何物，只是听说它为JS与OC提供了很好的沟通桥梁，换句话，IOS终于可以像安卓那样与JS愉快的沟]]></description><category></category></item><item><title><![CDATA[iOS开发--AVFoundation自定义相机]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78269894</link><guid>https://blog.csdn.net/PeaksLee/article/details/78269894</guid><author>PeaksLee</author><pubDate>Wed, 18 Oct 2017 10:17:04 +0800</pubDate><description><![CDATA[直插正题！
首先导入一个头文件
    #import 由于后面我们需要将拍摄好的照片写入系统相册中，所以我们在这里还需要导入一个相册需要的头文件   #import 导入头文件后我们需要创建几个相机必须的属性    /**
     *  AVCaptureSession对象来执行输入设备和输出设备之间的数据传递
     */
    @property (nonatomic, strong)]]></description><category></category></item><item><title><![CDATA[iOS开发企业版ipa分发(In-House模式)记录]]></title><link>https://blog.csdn.net/PeaksLee/article/details/78269883</link><guid>https://blog.csdn.net/PeaksLee/article/details/78269883</guid><author>PeaksLee</author><pubDate>Wed, 18 Oct 2017 10:16:25 +0800</pubDate><description><![CDATA[前言
本人公司开发的.ipa发布于 AppStore 和自己的服务器上。但是自己却一直没时间利用公司的资源进行研究。现在赶紧趁热打铁，记录一下，以便以后查阅。
在此之前，在网上查阅了相关资料并整理了一下加以完善更正。
背景
网上说Xcode 6之后版本导出企业.ipa包需要手动添加.plist文件，本人今天亲自测试了一遍，发现Xcode 7之后又可以配置生成的。在这里我按照我的流程走一遍。
IPA]]></description><category></category></item></channel></rss>