property type UIModalTransitionStyle is incompatible with type UIModalTransitionStyle inherited from UIViewController
Getting the above warning message after setting the property of UIModalTransitionStyle
@property (nonatomic, assign) UIModalTransitionStyle *modalTransitionStyle;
@synthesize modalTransitionStyle;
This is simple property declaration
Have any ideas why getting this message
This is not the way you are supposed to use
UIModalTransitionStyle.Take a look at this property of
UIViewControllerhere:http://developer.apple.com/library/ios/#documentation/uikit/reference/UIViewController_Class/Reference/Reference.html
Your code should be something like:
According to UIViewController class reference UIModalTransitionStyle can be: