ObjectiveC判断邮箱地址合法性

客户端判断邮箱格式合法.

»
Author's profile picture Veight Zhou

ObjectiveC 生成 MD5

在开发时处于安全考虑, 会经常使用到MD5.由于比较常用, 就把现在用的代码记一下, 权当笔记.

»
Author's profile picture Veight Zhou

AFNetworking读取cookies方法

AFNetworking的Cookies处理是封装到底层的,也就是说,使用AFnetworking时,开发者不需要自行去管理的,AFNetworking会自行帮你在底层进行cookies的(响应时)读取和(之后请求时)写入.可是开发过程中有时候会需要使用cookies中一些值,所有需要我们去访问cookies的内容.我们可以通过以下方式遍历Client中共享的cookies. objc NSArray *cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]; for (NSHTTPCookie *cookie in cookies) { // Here I see the correct rails session cookie NSLog(@"cookie:\n%@", cookie); NSLog(@"cookie.value:\n%@",cookie.value); }

»
Author's profile picture Veight Zhou

AFNetworking中unacceptable content type错误

刚开始用AFNetworking的人总会遇到如下这个错误.

»
Author's profile picture Veight Zhou

一个很无聊的Alfredworkflow

打开Github的速度太慢了,大家都懂的.每次在一个repo里想搜其他内容的时候,点回主页再搜索感觉好麻烦啊=-=.(求小技巧打脸!).然后写了个小workflow偷懒=-=.

»
Author's profile picture Veight Zhou

Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass(). 解决办法

今天队友引进了JSONKit这个第三方的JSON解析库.于是20枚编译错误GET.不过队友没遇到问题和头头pull下来也直接跑.后来发现他们跑了4s的模拟器,而我在跑5s的模拟器.所以初步推测是64位平台送来的彩蛋. 稍微看了下错误原因,基本都是一个错误.

Direct access to objective-c's isa is deprecated in favor of objectsetClass() and objectgetClass().

»
Author's profile picture Veight Zhou

Alcatraz 遇到 Command Line Tools 错误解决方案

Alcatraz 是一款Xcode5下的图形化包管理工具, 可以方便的安装各种Xcode扩展.

»
Author's profile picture Veight Zhou

brew cask - 让生活更美好

homebrew 是Mac下一个包管理工具, 可以方便得安装Mac下许多命令行工具。 而cask是brew的增强工具,提供了更丰富的GUI应用程序。

»
Author's profile picture Veight Zhou

Golang生成ObjectiveC接口

之前写ObjectiveC的接口写哭了,因为接口数量实在是太多了,所以写了个Golang的小工具打辅助。

»
Author's profile picture Veight Zhou

ReactiveCocoa 第一次小实践

使用 ReactiveCocoa 进行了一个小小的实践,实现以下功能:

»
Author's profile picture Veight Zhou