摘要: 原文地址:http://cocoasamurai.blogspot.com/2010/01/understanding-objective-c-runtime.htmlThe Objective-C Runtime is one of the overlooked features of Objective-C initially when people are generally introduced to Cocoa/Objective-C. The reason for this is that while Objective-C (the language) is easy to pi 阅读全文
posted @ 2012-07-15 14:50 iTenric 阅读(204) 评论(0) 推荐(0) 编辑
摘要: iOS中保存密码,如果要追求安全性,那么使用苹果自带的Keychain Services无疑是最佳选择。如果要在程序中使用Keychain Services,首先要添加Security.framework。Keychain Services提供了一系列api用以存取和更新keychain item:SecItemAdd(添加)SecItemUpdate(更新)SecItemCopyMatching(查找)SecItemDelete(删除)这些方法直接使用有点麻烦,需要进行面向对象的封装。我写了一个简单的例子,只是用来保存用户名和密码,以实现记住密码这项功能。下面贴一部分代码,完整项目下载:ht 阅读全文
posted @ 2012-07-15 13:21 iTenric 阅读(4298) 评论(0) 推荐(0) 编辑