I have a UIViewController which I show sometimes as a UIViewController and some others like UIPopoverController, but I want them to show a different message depending if is showed as one or another, is there a line of code which helps me to know this?
something like:
if(self.popover) NSLog(@"this is a popover");
else NSLog(@"this is a viewcontroller");
thanks in advance