https://github.com/YouXianMing
摘要: UINavigationController导航栏控制器的左侧返回按钮如果需要设置成图片,仅使用系统的是无法实现的,需要重载系统的导航栏控制器,在控制器推出之前替换掉leftBarButtonItem才行.注:以下链接的这个哥们对NavigationViewController所有能做的定制都解说了http://beyondvincent.com/blog/2013/11/03/120-customize-navigation-status-bar-ios-7/#5源码如下:CustomNavigationViewController.h + CustomNavigationViewContr 阅读全文
posted @ 2014-03-21 10:12 YouXianMing 阅读(2978) 评论(1) 推荐(1) 编辑
摘要: SQLiteManager https://github.com/misato/SQLiteManager4iOS 本人以前从事过嵌入式开发,后来转职为iOS开发,即使如此,也绝不想去碰C语言级别的面向过程的 sqlite3 来操作数据库,做高级语言开发还去折腾面向过程的东西,一个小小的nil没判断好就导致程序崩溃, 这就是 sqlite3 APIs 给你带来的问题,只有封装成面向对象的接口才有可能会去用.有一个封装得挺好的 FMDB 是不二的选择,但这个 SQLiteManager 属于轻量级封装,满足了最最基本的需求,但是,他是在开了ARC的情形下使用的,也就是说,没开ARC后会各种泄露. 阅读全文
posted @ 2014-03-19 13:21 YouXianMing 阅读(3523) 评论(0) 推荐(1) 编辑
摘要: DES算法☆提供高质量的数据保护,防止数据未经授权的泄露和未被察觉的修改☆具有相当高的复杂性,使得破译的开销超过可能获得的利益,同时又要便于理解和掌握☆DES密码体制的安全性应该不依赖于算法的保密,其安全性仅以加密密钥的保密为基础☆实现经济,运行有效,并且适用于多种完全不同的应用苹果本身支持DES加密,在项目中引入头文件 CommonCrypto/CommonCryptor.h 即可使用相关函数.我自己对其进行了封装,支持ARC与非ARCYXCrypto.h//// YXCrypto.h// 用秘钥给字符串加密或者解密//// Created by YouXian on 14-3-18.... 阅读全文
posted @ 2014-03-18 16:34 YouXianMing 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: Reachabilitysource https://developer.apple.com/library/ios/samplecode/Reachability/Introduction/Intro.htmlreachability 为苹果官方demo提供的一个检测网络状态的代码,下载源码后本人对其进行了修改,修改后源码:reachability.h + reachability.m#import #import #import typedef enum : NSInteger { NotReachable = 0, ReachableViaWiFi, Reachable... 阅读全文
posted @ 2014-03-18 14:45 YouXianMing 阅读(2599) 评论(0) 推荐(0) 编辑
摘要: NSPredicate谓词工具一般用于过滤数组数据,也可用来过滤CoreData查询出的数据.1). 支持keypath2). 支持正则表达式在使用之前先新建3个类 Teacher Info Address,详细代码如下Info.h#import @interface Info : NSObject@property (nonatomic, strong) NSString *classNum;@endInfo.m#import "Info.h"@implementation Info@endAddress.h#import @interface Address : NSO 阅读全文
posted @ 2014-03-17 16:35 YouXianMing 阅读(786) 评论(0) 推荐(2) 编辑
摘要: source https://github.com/rs/SDWebImageAPIdoc http://hackemist.com/SDWebImage/docAsynchronous image downloader with cache support with an UIImageView categoryUIImageView的类目,支持异步图片下载,支持缓存机制This library provides a category for UIImageVIew with support for remote images coming from the web.这个库给UIImageV 阅读全文
posted @ 2014-03-17 13:17 YouXianMing 阅读(5191) 评论(1) 推荐(1) 编辑
摘要: Grand Central Dispatch (GCD) ReferenceGrand Central Dispatch (GCD) comprises language features, runtime libraries, and system enhancements that provid... 阅读全文
posted @ 2014-03-14 15:59 YouXianMing 阅读(978) 评论(0) 推荐(0) 编辑
摘要: [文章原地址]http://mobile.tutsplus.com/tutorials/iphone/ios-quick-tip-5-tips-to-increase-app-performance/人翻胜于机翻,本着练习英语的目的翻译iOS相关的文章,看官切勿见笑。本人将在文章的部分地方添加注释,... 阅读全文
posted @ 2014-03-13 21:12 YouXianMing 阅读(788) 评论(0) 推荐(1) 编辑
摘要: MagicalRecord https://github.com/magicalpanda/MagicalRecord注意: MagicalRecord 在 ARC 下运作,Core Data 是 ORM 方案,据说带来的麻烦比好处多,且 Core Data 建立的表没有主键,但对于对数据库没有性能... 阅读全文
posted @ 2014-03-13 09:37 YouXianMing 阅读(5565) 评论(3) 推荐(1) 编辑
摘要: Xcode 5.1.dmg 下载地址http://pan.baidu.com/s/1jGJpKm61.新建 Framework & Library 工程我起名叫ShowInfo,下面为其源码showInfo.h=========================#import @interface S... 阅读全文
posted @ 2014-03-12 11:27 YouXianMing 阅读(772) 评论(1) 推荐(1) 编辑