Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- UIView
- simulator
- 샘플
- 공략
- swift3
- 페이백
- loop
- Xcode
- Check
- afterdelay
- 포켓볼
- 신도림 테크노마트
- 포켓몬 GO
- 앱스토어
- 아이폰7
- IOS
- Bitcode
- Example
- 얻는법
- push
- UITableView
- LG유플러스
- swift
- 보라카이
- 스마트폰
- 신도림
- GCD
- 해몽
- error
- setting
Archives
- Today
- Total
도래울
Swift image viewer 오픈소스 본문
GSImageViewerController
Demo
Example
To show normal image viewer controller:
let imageInfo = GSImageInfo(image: someImage, imageMode: .AspectFit)
let imageViewer = GSImageViewerController(imageInfo: imageInfo)
navigationController?.pushViewController(imageViewer, animated: true)To show zoom transition image viewer controller:
let imageInfo = GSImageInfo(image: someImage, imageMode: .AspectFill, imageHD: someHDImageURLOrNil)
let transitionInfo = GSTransitionInfo(fromView: someView)
let imageViewer = GSImageViewerController(imageInfo: imageInfo, transitionInfo: transitionInfo)
presentViewController(imageViewer, animated: true, completion: nil)Requirements
- iOS 7.0+
- Xcode 7.3 (Swift 2.2)
Installation
Embedded frameworks require a minimum deployment target of iOS 8.
To use GSImageViewerController with a project targeting iOS 7, you must to drag
GSImageViewerController.swiftto your iOS Project.
CocoaPods:
In your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod "GSImageViewerController"
And in your *.swift:
import GSImageViewerControllerLicense
GSImageViewerController is available under the MIT license. See the LICENSE file for more info.
'개발 > iOS' 카테고리의 다른 글
| swift alert ios8 example (0) | 2016.05.23 |
|---|---|
| UITextField 에서 Money Format 자동완성 하기 (0) | 2016.05.23 |
| LocationManager 가 작동 하지 않는 경우 (0) | 2016.05.04 |
| UIView frame, bounds 그리고 좌표 (0) | 2016.05.04 |
| swift navigation bar image (0) | 2016.05.02 |
Comments
