摘要:        
BBWebImage 设计思路 BBWebImage 是高性能 Swift 图片组件,用于图片下载、缓存、编解码、编辑与展示。 GitHub 地址: "https://github.com/Silence GitHub/BBWebImage" 效果图 下载、展示并缓存原图 下载、渐进式解码、编辑图片    
阅读全文
            posted @ 2019-02-27 13:30
Silence_cnblogs
阅读(2208)
推荐(0)
        
 
		
    
        
        
摘要:        
支持 GIF 的图片组件 "BBWebImage" SDWebImage 加载显示 GIF 与性能问题 SDWebImage 4.0 之前,可以用 UIImageView 显示 GIF 图。如果 SDWebImage 4.0 还这么做,只会显示静态图。SDWebImage 4.0 用 FLAnima    
阅读全文
            posted @ 2017-04-08 20:27
Silence_cnblogs
阅读(19247)
推荐(0)
        
 
		
    
        
        
摘要:        
UIScrollView 和 UICollectionView 分页效果 UIScrollView 可以滚动显示宽度或高度大于其 bounds 的内容。有些时候,需要有分页效果。每一页有统一的大小,相邻无缝水平或垂直排列。当水平或垂直滚动松开手后,会在其中一页完全显示的位置停下,滚动的距离是一页宽度    
阅读全文
            posted @ 2017-03-10 11:33
Silence_cnblogs
阅读(17992)
推荐(1)
        
 
		
    
        
        
摘要:        
更多图片处理方法见图片组件 "BBWebImage" iOS 图片压缩方法 两种图片压缩方法 两种压缩图片的方法:压缩图片质量(Quality),压缩图片尺寸(Size)。 压缩图片质量 通过 UIImage 和 NSData 的相互转化,减小 JPEG 图片的质量来压缩图片。UIImageJPEG    
阅读全文
            posted @ 2017-01-24 11:41
Silence_cnblogs
阅读(40746)
推荐(4)
        
 
		
    
        
             
        
         
        2018年1月20日
    
 
        
        
摘要:        
SDWebImage 加载显示 WebP 与性能问题 本文包含自定义下载操作 SDWebImageDownloaderOperation 与编码器 SDWebImageCoder。SDWebImage 的版本为 4.2.3。 静态图片 对于静态图片来说,WebP 比 PNG 体积小,可以省流量,但是    
阅读全文
            posted @ 2018-01-20 09:55
Silence_cnblogs
阅读(3194)
推荐(0)
        
 
		
    
        
             
        
         
        2017年9月24日
    
 
        
        
摘要:        
NSTimer、CADisplayLink 内存泄漏 内存泄漏的原因 CADisplayLink 要用 Taget 和 Selector 初始化,NSTimer 也可以用类似的方法初始化。这样初始化之后,NSTimer 或 CADisplayLink(以下把两者统称为 CADisplayLink)会    
阅读全文
            posted @ 2017-09-24 14:38
Silence_cnblogs
阅读(1482)
推荐(1)
        
 
		
    
        
             
        
         
        2017年8月8日
    
 
        
        
摘要:        
更多图片处理方法见图片组件 "BBWebImage" iOS 使用矢量图 iOS 图标通常用 PNG 格式的图片。PNG 图片放大到超过自身的大小就会模糊。可以使用 PDF 格式的矢量图,优点是任意改变图片大小并且保持清晰度。 简单使用 与 PNG 格式的图片一样,在 Xcode 中把 PDF 格式    
阅读全文
            posted @ 2017-08-08 16:44
Silence_cnblogs
阅读(3217)
推荐(0)
        
 
		
    
        
             
        
         
        2017年6月24日
    
 
        
        
摘要:        
LeetCode 36 Valid Sudoku Question Determine if a Sudoku is valid, according to: "Sudoku Puzzles The Rules" . The Sudoku board could be partially fille    
阅读全文
            posted @ 2017-06-24 22:04
Silence_cnblogs
阅读(306)
推荐(0)
        
            
        
        
摘要:        
LeetCode 35 Search Insert Position Question Given a sorted array and a target value, return the index if the target is found. If not, return the index    
阅读全文
            posted @ 2017-06-24 10:10
Silence_cnblogs
阅读(305)
推荐(0)
        
            
        
        
摘要:        
LeetCode 34 Search for a Range Question Given an array of integers sorted in ascending order, find the starting and ending position of a given target     
阅读全文
            posted @ 2017-06-24 09:01
Silence_cnblogs
阅读(300)
推荐(0)
        
 
		
    
        
             
        
         
        2017年6月23日
    
 
        
        
摘要:        
LeetCode 29 Divide Two Integers Question Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_IN    
阅读全文
            posted @ 2017-06-23 22:20
Silence_cnblogs
阅读(240)
推荐(0)
        
            
        
        
摘要:        
LeetCode 28 Implement strStr() Question Implement strStr(). Returns the index of the first occurrence of needle in haystack, or 1 if needle is not par    
阅读全文
            posted @ 2017-06-23 18:36
Silence_cnblogs
阅读(233)
推荐(0)
        
            
        
        
摘要:        
LeetCode 27 Remove Element Question Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate    
阅读全文
            posted @ 2017-06-23 17:12
Silence_cnblogs
阅读(228)
推荐(0)