When I run on simulator ipad mini (which I am using ipad 2 profile) and ipad air it shows the same resolution 1024x768
for UI Kit it might adjust automatically but I
You can use model method in UIDevice class to distinct different devices. What's more, you can use this open source framework https://github.com/erichoracek/UIDevice-Hardware . It may be more handy to use it.
model
UIDevice