UIViewController as a popup
===

I have ViewController inside static lib.
Also have public interface to 

- presentPopup:
- presentInNavigationVC:(UINavigation...)

Is it possible to show my ViewController as popup in other viewController and what is the best way to do it? 
I suppose that I have to add my viewController view as subView to other ViewController view.
But it should be complete logic to switch between popup mode and pushing my viewController into navigationController.

Popup should looks like FBDialog:

![Facebook popup][1]


  [1]: http://i.stack.imgur.com/yHtos.png