本期精選五個實用開源庫,涵蓋圖片查看器、超鏈接、圖片浏覽、Watch 加載動畫與進程視圖。
作者:hyc920102
作者自寫的多圖查看器,支援全屏縮放,demo 裡有詳細使用說明,歡迎多多討論。
測試環境:Xcode 6.2,iOS 6.0 以上。

作者:郭鵬飛
透過 NSMutableAttributedString 給 UITextView 添加超鏈接。
測試環境:Xcode 6.2,iOS 6.0 以上。

作者:丫頭無可取代
用法很簡單:
FYImageView *im = [[FYImageView alloc] initWithFrame:CGRectMake((130 * (i % 3)) + 30, 10 + 120 * (i / 3), 100, 80)]; [im addTarget:self action:@selector(cellClick:)]; //相當於 button
然後:
dataArray 是 imageUrlArray,index 是點擊圖片的索引,FromView 是點擊圖片的父視圖,tap.view 是圖片本身。
FYPhotoBrowser *photoWeb = [[FYPhotoBrowser alloc] initWithImageUrlString:dataArray atIndex:index FromView:cell.contentView]; photo.isFromNet = YES; //有本地 image 和網絡下載兩種情況 [photoWeb showWithView:tap.view];
測試環境:Xcode 6.2,iOS 6.0 以上。

該項目包含適用於 Apple Watch app 的多個加載指示,用 Swift 編寫,例如離散(推薦使用時間 6s)、Bang(5s)、波紋(6s)以及聲波(6s)等。



用 Swift 編寫,可生成類似於 Apple Watch 的進程視圖。
