Nov
                
                
                12
            iOS: UIImage gauss blur
            
                Published 12:11 Nov 12, 2014 by @ezra.
            
            
                #Programming# 为 UIImage 生成高斯模糊效果:
- (UIImage *)gaussBlurWithLevel:(CGFloat)blurLevel {
    blurLevel = MIN(1.0, MA...
            
            
            
        
            
            Nov
                
                
                12
            iOS: UIImage 获取主色调
            
                Published 12:11 Nov 12, 2014 by @ezra.
            
            
                #Programming# 获取一个 UIImage 实例的主色调:
// @implementation UIImage (Detector)
- (UIColor *)mainColor {
#if __IPHONE_OS...
            
            
            
        
            
            Nov
                
                
                06
            Difference between enum and NS_ENUM in Objective-C
            
                Published 12:11 Nov 06, 2014 by @ezra.
            
            
                #Programming# First, NS_ENUM uses a new feature of the C language where you can specify the underlying type for an...
            
            
            
        
            
            Oct
                
                
                20
            iOS: HTML 转 NSAttributedString
            
                Published 12:10 Oct 20, 2014 by @ezra.
            
            
                #Programming# 将 HTML 代码转换成属性文字, 其实很简单:
- (NSAttributedString *)attributedStringFromHTML {
    NSData *data = [self...
            
            
            
        
            
            Oct
                
                
                20
            iOS: NSLayoutConstraint 动画
            
                Published 12:10 Oct 20, 2014 by @ezra.
            
            
                #Programming# 直接上代码:
// @implementation NSLayoutConstraint (Animation)
- (void)setConstant:(CGFloat)constant anima...
            
            
            
        
            
            Oct
                
                
                20
            iOS: NSString 替换 Unicode 字符
            
                Published 12:10 Oct 20, 2014 by @ezra.
            
            
                #Programming# 将 NSString 中的 Unicode 字符替换为 UTF-8 字符:
- (NSString *)stringByReplacingUnicodeWithUTF8 {
    NSString ...
            
            
            
        
            
            Oct
                
                
                14
            iOS 小知识: App Store Link
            
                Published 12:10 Oct 14, 2014 by @ezra.
            
            
                #Programming# 介绍一些 iOS 小知识。
直接在 App Store 打开应用页面而不跳转 Safari
打开链接时将 https:// 换成 itms-apps:// 即可。
附上 iTunes Link Mak...
            
            
            
        
            
            Oct
                
                
                14
            iOS 小知识: KVC 与 简单集合运算符
            
                Published 12:10 Oct 14, 2014 by @ezra.
            
            
                #Programming# 介绍一些 iOS 小知识。
KVC 与简单集合运算
也就是 @sum、@avg、@count、@max、@min 这五个家伙,分别表示和、平均值、计数、最大值,最小值。
举个栗子:
NSArray *...
            
            
            
        
            
            Oct
                
                
                14
            iOS 小知识: UITableView 收起键盘
            
                Published 12:10 Oct 14, 2014 by @ezra.
            
            
                #Programming# 介绍一些 iOS 小知识。
UITableView 收起键盘
可能很多用用过 [self.view endEditing:YES]; 这句代码,但对于 UITableView 还有更好的选择:
tab...
            
            
            
        
            
            Oct
                
                
                14
            iOS 小知识: URL 脱义
            
                Published 12:10 Oct 14, 2014 by @ezra.
            
            
                #Programming# 介绍一些 iOS 小知识。
URL 脱义
适用于 URL 中包含中文、其他 URL 或 URL 关键字的情况:
 NSString *newURL = (NSString *)CFBridgingRe...
            
            
            
        
            
            Oct
                
                
                14
            iOS 小知识: 为 UIView 设置图片
            
                Published 12:10 Oct 14, 2014 by @ezra.
            
            
                #Programming# 介绍一些 iOS 小知识。
给 UIView 设置图片
方法一
UIImage *image = [UIImage imageNamed:@"<#Your Image#>&q...
            
            
            
        
            
            Oct
                
                
                14
            iOS 小知识: 去除 NSString 两端空白与空行
            
                Published 12:10 Oct 14, 2014 by @ezra.
            
            
                #Programming# 介绍一些 iOS 小知识。
去除 NSString 两端空白与空行"
去除两端空格
[string stringByTrimmingCharactersInSet:[NSCharacterSet ...