Author Topic: UIViewcontroller on Second Window  (Read 4984 times)

Slacer

  • Newbie
  • *
  • Posts: 14
    • View Profile
UIViewcontroller on Second Window
« on: September 13, 2013, 08:13:28 PM »
Hello Kevin!
I know how to initialize an external display and how to insert a view, but if I want to init a secondWindow with a ViewController?



that blue view is a ViewController called containerViewController and I need to add the viewController when an hdmi adapter is on. But I can't loose the view in the iPad, like happens now.
I have the observer, but If I do
Code: [Select]
[self.secondWindow setRootViewController:self.containerViewController];I don't see anything...

Thank you!

kjmcneish

  • Administrator
  • *****
  • Posts: 719
    • View Profile
Re: UIViewcontroller on Second Window
« Reply #1 on: September 15, 2013, 01:25:34 AM »
Hmmm...I'm not sure exactly what you mean. Can you provide a little more information?

Thanks!
Kevin

Slacer

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: UIViewcontroller on Second Window
« Reply #2 on: September 15, 2013, 06:39:52 AM »
In containerViewController there is something that I want to see in the second screen, when I plug the hdmi adapter. But If I do

Code: [Select]
[self.secondWindow setRootViewController:self.containerViewController];
I don't see anything...

What can I do? I want to see the content of self.containerViewController ( declared in Viewcontroller.h ) in the external screen...