Target device, platform and resolution on iOS?

What are the best values to use, if you’re looking for compatibility?

I think it’s best to detect the platform and have a different set of layouts for each, except where some devices have about the same physical dimensions (pixels and pixels/inch). A one-size-fits-all approach usually results in things looking way too big or way too small on some device.