title: Determine if a view is inside of a Popover view
body: <p>We have common views that we use in our application in many locations inside of <code>UINavigationControllers</code>. Occasionally the <code>UINavigationController</code>s are inside of popover views. Now the views we put into the nav controllers modify their navigation controller's toolbar buttons and, in some cases, use custom buttons that we've created. We need to be able to figure out from the <code>UIViewcontroller</code> itself if the view is inside of a popoverview so we can display the correctly colored buttons.</p>
  
  <p>We can easily get the Navigation controller reference from the UIViewController, using <code>UIViewController.navigationController</code>, but there doesn't seem to be anything for finding a <code>UIPopoverController</code>.</p>
  
  <p>Does anyone have any good ideas for how to do this?</p>
  
  <p>Thanks!</p>