I built two apps with Xcode 11 and Xcode 12, and run them on iPhone 12. Then I found that [UIScreen mainScreen] returns differently, 1125*2436 with Xcode 11 and 1170*2532 with Xcode 12. What causes this difference ? Are there other APIs having same problems?
Post
Replies
Boosts
Views
Activity
I'm developing an App Clip to add cards to Apple Wallet,and I want to check if card already added to PassKit library.For example, to show "Apple Pay enabled" checkmark on a card's UI.
when I call these codes:
PKPassLibrary *passLibrary = [[PKPassLibrary alloc] init];
NSArray<PKPass *> *paymentPasses = [passLibrary passesOfType:PKPassTypePayment];
the paymentPasses returns an empty array.I want to know if App Clip can access passes, and how can I get the entitlements to query the pass library.