mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-03-29 15:59:12 +08:00
35 lines
806 B
Swift
35 lines
806 B
Swift
//
|
|
// 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)
|
|
}
|
|
}
|
|
|
|
}
|