I am programming an iPhone application using Objective-C.
Here the Xcode error gives me:
error: assignment of read-only variable 'prop.149'
Code:
// Create CATransition object CATransition *transition = [CATransition animation]; // Animate over 3/4 of a second transition.duration = 0.75; // using the ease in/out timing function transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; // Set transition type transition.type = kCATransitionPush; // Next line gives error: assignment of read-only variable 'prop.149' transition.subtype = (flipsideView.hidden == YES ? kCATransitionFromRight : kCATransitionFromLeft);
What does the error mean, and how to fix it?
source share