I have a problem / doubts. Until today due to some needs I have developed only for iPhone or iPad separately, however today I am starting in the development of universal application, iPhone and iPad.
I'm using Xcode 6 and developing directly for iOS 8. I was able to adapt the screens for both devices, it was cool except for the fact that: when I built the screens using storyboard , I added a UITabBar
and referenced it as Outlet
in my parent. When I adapted to the iPad screen, I had to add another UITabBar
(actually I had to add all the components as it was empty). When trying to reference as Outlet
in the class, I could not because it "overwritten", losing my outlet from the iPhone screen and vice versa.
My doubts are as follows:
- What is the best way to do this?
- Every time I create a screen for the iPhone and adapt the screen to the iPad, will I have to add all the components again?
- If you override, what is the correct alternative to do this?
- Will I need to have two controllers? One for iPad and one for iPhone?
IMPORTANT: To know how I create the layout and codes: I did not write any code, I'm still in the stage of creating the screens and create the layout in the same way as in this video: link