class ImageViewController: UIViewController {

	// 写真を表示する UIImageView
	@IBOutlet weak var imageView: UIImageView!

	// 画面が表示された時に呼ばれるメソッド
	override func viewDidAppear(animated: Bool) {
		super.viewDidAppear(animated)
		// S3からダウンロードしたファイルを表示する
		let fileURL = NSURL(fileURLWithPath: NSTemporaryDirectory()).URLByAppendingPathComponent("tmp.jpg")
		imageView.image = UIImage(data: NSData(contentsOfURL: fileURL)!)
	}
	// 閉じるボタンが押された時に呼ばれるメソッド
	@IBAction func touchCloseButton(sender: UIButton) {
		self.dismissViewControllerAnimated(true, completion: nil)
	}
}