Removing conditional specific to a universal application
In order to make an application universal one has to detect the device’s idiom (iPhone/iPad) at run time. This is easily done with the following conditional: if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){ //iPad specific codes. } else{ //iPhone specific codes. } You might have used this conditional, for example, when you want to control a view’s rotation [...]