Apple strongly discourages the use of "landscape" and "portrait" modes in applications and strongly encourages the use of size classes. That implies that your original method - above - is probably the correct way to go. However, size classes cannot tell you what device you are using.When using multiple windows on iPad, those windows may have compact widths or heights. Therefore you cannot conclude from size classes that your device is an iPhone in the way that you have done in your original post.(By the way. Thanks for the size classes code. It was just what I was looking for for my application.)Regards,Vince.