All Projects → LuKane → Knphotobrowser

LuKane / Knphotobrowser

Licence: mit
📷 图片 || 视频 浏览器(本地和网络) , UIViewController + CollectionView , 完美适配 iPhone 以及 iPad ,屏幕旋转功能 , 适配SDWebImage 5.0

Projects that are alternatives of or similar to Knphotobrowser

Xhlaunchad
🔥The screen opening advertising solutions - 开屏广告、启动广告解决方案-支持静态/动态图片广告,mp4视频广告,全屏/半屏广告、兼容iPhone/iPad. 【 Github下载不了/下载慢 可以访问国内下载地址: https://gitee.com/CoderZhuXH/XHLaunchAd】
Stars: ✭ 3,578 (+1108.78%)
Mutual labels:  iphone, ipad, pod
Numericaltextentry
An iOS library for beautiful number entry fields. iPad friendly. Written in Swift.
Stars: ✭ 16 (-94.59%)
Mutual labels:  iphone, ipad, pod
ALButtonMenu
A simple, fully customizable menu solution for iOS.
Stars: ✭ 45 (-84.8%)
Mutual labels:  iphone, ipad, uiviewcontroller
Chatsecure Ios
ChatSecure is a free and open source encrypted chat client for iOS that supports OTR and OMEMO encryption over XMPP.
Stars: ✭ 3,044 (+928.38%)
Mutual labels:  iphone, ipad
Hostess.swift
A Swift implementation of NSHost that works on iOS, OS X and tvOS. Hostess.swift is safe to use in a framework because it does not require a bridging header. Hostess is Swift 4.0 (or newer) only and replaces the Swift 2.x only Host.swift.
Stars: ✭ 27 (-90.88%)
Mutual labels:  iphone, ipad
nativesapp
Simple WhatsApp clone just for training purposes - Course Angular Native at www.udemy.com/angular-native
Stars: ✭ 19 (-93.58%)
Mutual labels:  iphone, ipad
HapticGenerator
Easy peasy haptic generation in iOS.
Stars: ✭ 32 (-89.19%)
Mutual labels:  iphone, ipad
blobile
Blases Loaded - Unofficial Live Blaseball Game Viewer for iOS, Android, and Web
Stars: ✭ 16 (-94.59%)
Mutual labels:  iphone, ipad
ios code sign
iOS 签名简介
Stars: ✭ 23 (-92.23%)
Mutual labels:  iphone, ipad
Yampa
Functional Reactive Programming domain-specific language embedded in Haskell, for programming efficient hybrid (mixed discrete-time and continuous-time) systems.
Stars: ✭ 294 (-0.68%)
Mutual labels:  iphone, ipad
jyutping
Cantonese Jyutping Keyboard for iOS. 粵語粵拼輸入法鍵盤
Stars: ✭ 23 (-92.23%)
Mutual labels:  iphone, ipad
spark-sdk-ios
DEPRECATED Particle iOS Cloud SDK. Use -->
Stars: ✭ 52 (-82.43%)
Mutual labels:  iphone, ipad
DartBible-Flutter
cross-platform mobile bible app [Android & iOS / iPhone / iPad]; written in Dart programming language
Stars: ✭ 26 (-91.22%)
Mutual labels:  iphone, ipad
Showtime
The easiest way to show off your iOS taps and gestures for demos and videos.
Stars: ✭ 281 (-5.07%)
Mutual labels:  iphone, ipad
BDLocalizedDevicesModels
Apple devices model names localized.
Stars: ✭ 23 (-92.23%)
Mutual labels:  iphone, ipad
iOS interviews
iOS Interviews - 史上最贴心 iOS 面试知识点分享!不只是 iOS !只为技术的执拗 !👍 全网火速更新中 🔥 期待你的讨论,期待你的 issue ! 🌟
Stars: ✭ 25 (-91.55%)
Mutual labels:  iphone, ipad
SpecTools
Write less test code with this set of spec tools. Swift, iOS, testing framework independent (but works well with Quick/Nimble or directly).
Stars: ✭ 38 (-87.16%)
Mutual labels:  iphone, ipad
Pushok
PHP client for Apple Push Notification Service (APNs) - Send push notifications to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key)
Stars: ✭ 260 (-12.16%)
Mutual labels:  iphone, ipad
OTResizableView
OTResizableView is a UIView library that can be resized with fingers.
Stars: ✭ 47 (-84.12%)
Mutual labels:  iphone, ipad
Localradio
📻 LocalRadio is "Radio for Cord-Cutters" – a Software-Defined Radio (SDR) app for your Mac and mobile devices. With an inexpensive RTL-SDR USB device, LocalRadio provides a casual, home-based radio listening experience for your favorite local frequencies - FM broadcasts/free music/news/sports/weather/public safety & aviation scanner/etc.
Stars: ✭ 269 (-9.12%)
Mutual labels:  iphone, ipad

image

CocoaPods CocoaPods Support 

KNPhotoBrowser

中文 | English

most like photo or video browser of Wechat(TX) and Weibo(Sina) in China

if you get any function to add, just contact me by E-mail. Welcome to Star

imageimageimageimageimage

Update content

DESCRIPTION STATUS
Base on UIViewController       √
Adapt for rotate of the screen       √
Adapt for iPhone5~iPhone12Pro_Max       √
Locate and net image and gif image       √
Locate and net video       √
PanGesture to dismiss or cancel [API]       √
Prefetch image, max is 8 [API]       √
Video player auto play [API]       √
Video player times speed play [API]       √
Show custom view on PhotoBrowser [API]       √
Show custom view on PhotoBrowser, and set animated following photoBrowser [API]       √
Before the photoBrowser show, all image control can be custom [API]       √
All operation though the delegate [Delegate]       √

1.Before use, you need to know

  • 1.depend SDWebImage(5.0), if need locate gif image, depend SDWebImage(5.8.3)
  • 2.image and video play is ready for use
  • 3.download image or video is ready for use
  • 4.custom control as you wish
  • 5.auto manager image or video of download is not contain

2.How to use

(1).init base params

// 1.make every control as an object, put it into an array
KNPhotoItems *items = [[KNPhotoItems alloc] init];
items.url = @"http://xxxxxxxx/xxx.png";
items.sourceView = imageView;
// if current url is video type
// items.isVideo = true;
// if current image is locate gif
// itemM.isLocateGif = true;
[self.itemsArr addObject:items];

(2).init PhotoBrowser

KNPhotoBrowser *photoBrowser = [[KNPhotoBrowser alloc] init];
photoBrowser.itemsArr = [self.itemsArr copy];
photoBrowser.currentIndex = tap.view.tag;
[photoBrowser present];

(3).function's describe of delegate

photoBrowser will dismiss
/// photoBrowser will dismiss with currentIndex
- (void)photoBrowser:(KNPhotoBrowser *)photoBrowser willDismissWithIndex:(NSInteger)index;
photoBrowser right button did click
/// photoBrowser right top button did click with currentIndex (you can custom you right button, but if you custom your right button, that you need implementate your target action)
- (void)photoBrowser:(KNPhotoBrowser *)photoBrowser rightBtnOperationActionWithIndex:(NSInteger)index;

.....

(4).component of browser : KNPhotoItems

base params of items
/// if it is network image,  set `url` , do not set `sourceImage`
@property (nonatomic,copy  ) NSString *url;

/// if it is locate image, set `sourceImage`, do not set `url`
@property (nonatomic,strong) UIImage *sourceImage;

/// sourceView is current control to show image or video.
/// 1. if the sourceView is kind of `UIImageView` or `UIButton` , just only only only set the `sourceView`.
/// 2. if the sourceView is the custom view , set the `sourceView`, but do not forget set `sourceLinkArr` && `sourceLinkProperyName`.
@property (nonatomic,strong) UIView *sourceView;
custom source View (it is very nice)
@property (nonatomic,strong) NSArray<NSString *> *sourceLinkArr;

/**
 eg:
    if the lastObject is kind of  UIImageView ,  the `sourceLinkProperyName` is `image`
    if the lastObject is kind of  UIButton ,  the `sourceLinkProperyName` is `currentBackgroundImage` or `currentImage`
 */

/// the property'name of the  sourceLinkArr lastObject
@property (nonatomic,copy  ) NSString *sourceLinkProperyName;

/// is video or not, defalut is false
@property (nonatomic,assign) BOOL isVideo;

3.How to install

pod 'KNPhotoBrowser'

// terminal : cd ~(current path)
pod install or pod update

5.By the way

  • if you get any idea, just contact me! Thanks
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].