<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設計應用 > iOS開發(fā)常用的第三方類庫

          iOS開發(fā)常用的第三方類庫

          作者: 時間:2016-10-08 來源:網(wǎng)絡 收藏
          - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock usingActivityIndicatorStyle:(UIActivityIndicatorViewStyle)activityStyle;
          - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedBlock)completedBlock usingActivityIndicatorStyle:(UIActivityIndicatorViewStyle)activityStyle;

          UIImage+Resize 調整圖片大小

          本文引用地址:http://www.ex-cimer.com/article/201610/305920.htm

          GitHub:https://github.com/coryalder/UIImage_Resize

          提供多種方法為圖片設置透明度、圓角、裁剪、調整大小等:

          1
          2
          3
          4
          5
          6
          7
          8
          9
          10
          11
          12
          13
          14
          - (UIImage *)imageWithAlpha;
          - (UIImage *)transparentBorderImage:(NSUInteger)borderSize;
          - (UIImage *)roundedCornerImage:(NSInteger)cornerSize borderSize:(NSInteger)borderSize;
          - (UIImage *)croppedImage:(CGRect)bounds;
          - (UIImage *)thumbnailImage:(NSInteger)thumbnailSize
          transparentBorder:(NSUInteger)borderSize
          cornerRadius:(NSUInteger)cornerRadius
          interpolationQuality:(CGInterpolationQuality)quality;
          - (UIImage *)resizedImage:(CGSize)newSize
          interpolationQuality:(CGInterpolationQuality)quality;
          - (UIImage *)
          resizedImageWithContentMode:(UIViewContentMode)contentMode
          bounds:(CGSize)bounds
          interpolationQuality:(CGInterpolationQuality)quality;

          更詳細使用見:http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/

          ImageCacheResize 異步加載圖片、緩存及調整大小

          GitHub:https://github.com/toptierlabs/ImageCacheResize

          整合了SDWebImage和UIImage+Resize的功能,用于圖片的異步加載、緩存、以及下載完成后調整大小并顯示在UIImageView上。

          提供了以下API用于加載圖片以及加載完成后調整圖片大?。?/p>



          關鍵詞:

          評論


          相關推薦

          技術專區(qū)

          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();