mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-04-01 09:18:42 +08:00
Added tvOS example
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// GIFViewController.swift
|
||||
// PINRemoteImage.tvOSExample
|
||||
//
|
||||
// Created by Isaac Overacker on 2/6/16.
|
||||
//
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import PINRemoteImage
|
||||
|
||||
class GIFViewController: UIViewController {
|
||||
|
||||
@IBOutlet weak var animatedImageView: FLAnimatedImageView!
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
// Do any additional setup after loading the view, typically from a nib.
|
||||
}
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
override func viewDidAppear(animated: Bool) {
|
||||
super.viewDidAppear(animated)
|
||||
|
||||
if let url = NSURL(string: "https://i.giphy.com/l49FiX2pvMPPmCfSw.gif") {
|
||||
animatedImageView.pin_setImageFromURL(url)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user