I am using Brian Advent's video on making a blurry sidebar using the UIBlur effect (https://www.youtube.com/watch?v=qaLiZgUK2T0). However, in his video, he does not explain how to link each item of the table to a separate View Controller - he only explains how to make the single View Controller turn red. Could somebody please explain to me how to do this? The relevant code is as follows:
func sideBarDidSelectButtonAtIndex(index: Int) {
if index == 0{
imageView.backgroundColor = UIColor.whiteColor()
imageView.image = nil
} else if index == 1{
imageView.backgroundColor = UIColor.clearColor()
imageView.image = UIImage(named: "image2")
}
}