Swift Memory Issues when using UIView Animation on a Timer
问题 I'm coding with Swift in Xcode 6.1 and trying to create a simple automatic photo slideshow with a cross-dissolve effect between photos. I figured the best implementation would be to create a scheduled NSTimer that repeats and calls a selector method @IBOutlet var backgroundImageView: UIImageView! override func viewDidLoad() { super.viewDidLoad() backgroundImageView.image = UIImage(named: "1.jpg") let backgroundImageTimer = NSTimer.scheduledTimerWithTimeInterval( 5.0, target: self, selector: