lundi 29 décembre 2014

iPad XIB not showing - sort of

I have used Apples AlternativeViews demo as the base for an App that has 2 different views for the Landscape and Portrait. Everything seems to be connected correctly but only shows the iPhone xib in either portrait or landscape.


However if I make a change to the iPad Portrait or Landscape XIB it then shows correctly when tested the next time. However rotating from the Portrait to Landscape (assuming no change to landscape) in the iPad simulator switches back to iPhone xib. Rotating back shows the iPad one. However on the next build if no changes are made the iPhone xib is used in both cases. Any ideas where I messed up?



Main.storyboard is used as the holder in the Apple Demo.

LandscapeView.h, LandscapeView.m, Landscape.xib, Landscape~ipad.xib
PortraitView.h, PortraitView.m, PortraitView.xib, PortraitView~ipad.xib


are the other file names. The view controller has the correct classes etc.




Aucun commentaire:

Enregistrer un commentaire