var Testing: CATransition!
Testing.type = kCATransitionFade
Testing.duration = 1
Testing.delegate = ColorBox
I am using Swift.
On the second line, I get the error EXC_BAD_INSTRUCTION
. I have read into this error and have found that this could be because a value has returned nil
. Could someone please explain to me how I can fix this block of code?
Also is this even the correct way to set up a CATransition
/CAAnimation
?
(ColorBox
is a UIView
)