How can I restrict my iOS Project to iPhone 4 Only

后端 未结 3 1656
长发绾君心
长发绾君心 2021-01-14 18:48

I\'m using a barcode scanner library within my iOS project that currently only supports iPhone 4 devices. Is it possible to restrict the application submission so that only

3条回答
  •  囚心锁ツ
    2021-01-14 19:34

    You could try something like:

    UIRequiredDeviceCapabilities
    
        gyroscope
    
    

    This will restrict it to only iPhones that have the gyroscope, which is iPhone4 and beyond.

    Not sure this is the best way, but it should work.

    Hope this helps!

提交回复
热议问题