Post

Replies

Boosts

Views

Activity

Reply to UITextInteraction doesn't support physical keyboards?
As of 13.5, the shortcuts situation has improved, though there are still some issues with Emacs-style shortcuts. Here's the relevant Feedback Assistant id. FB7655372 - UITextInteraction is missing support for supported keyboard shortcuts And some related bug reports. FB7657103 - UITextInteraction does not respect the tintColor of the view to which it is attached FB7637400 - UITextInteraction doesn't support autoscroll FB7637377 - UITextInteraction doesn't account for scale changes I wrote about these (along with some work-arounds) in a blog post in case it helps. The forums won't let me include the link, but you can find it at steveshepard dot com. Steve
Jun ’20
Reply to Implementing a Calendar-style sidebar
The answer does *not* appear to be to subclass UISplitViewController and provide a custom bar button item in displayModeButtonItem as the method does not appear to be called. (UIBarButtonItem *)displayModeButtonItem {     UIButton *calendar = [UIButton systemButtonWithImage:[UIImage systemImageNamed:@"calendar.badge.exclamationmark"] target:self action:@selector(toggleCalendarAction:)];     UIButton *inboxButton = [UIButton systemButtonWithImage:[UIImage systemImageNamed:@"tray"] target:self action:@selector(toggleInboxAction:)];     UIButton *todayButton = [UIButton systemButtonWithImage:[UIImage systemImageNamed:@"list.bullet"] target:self action:@selector(toggleTodayAction:)];     UIStackView *buttonGroup = [[UIStackView alloc] initWithArrangedSubviews:@[calendar, inboxButton, todayButton]];     return [[UIBarButtonItem alloc] initWithCustomView:buttonGroup]; }
Jun ’20
Reply to UIListContentConfiguration crashes the app with reason: 'Unknown style: 10'
According to @smileyborg on Twitter, this is a recently-introduced bug with 3-column split view controllers. The work-around is to create a new UIListContentConfiguration instead of using the cell's defaultContentConfiguration. UICollectionViewCellRegistration *cellRegistration = [UICollectionViewCellRegistration registrationWithCellClass:[UICollectionViewListCell class] configurationHandler:^(__kindof UICollectionViewListCell * _Nonnull cell, NSIndexPath * _Nonnull indexPath, id _Nonnull item) {     // Populate the cell with our item description. 		// UIListContentConfiguration *contentConfiguration = [cell defaultContentConfiguration];     UIListContentConfiguration *contentConfiguration = [UIListContentConfiguration sidebarCellConfiguration];     // ... Configure the configuration     cell.contentConfiguration = contentConfiguration;     cell.backgroundConfiguration = UIBackgroundConfiguration.clearConfiguration; }];
Aug ’20
Reply to Can't find a way to get an Xcode-signed receipt for Mac app
Same here. macOS 11 beta 10, Xcode 12.2 beta 3. Xcode purchases complete and are visible in Debug > StoreKit > Manage Transactions, but the receipt is never updated. Calls to [[SKReceiptRefreshRequest alloc] initWithReceiptProperties:nil] result in an Apple ID login request. I do notice the following in system.log: Oct 15 17:30:32 Steves-MacBook-Pro appstoreagent[814]: objc[814]: Class asn1ReceiptToken is implemented in both /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore (0x7fff88733ef0) and /System/Library/PrivateFrameworks/CoreFP.framework/Versions/A/CoreFP (0x10b7cfd90). One of the two will be used. Which one is undefined. Oct 15 17:30:32 Steves-MacBook-Pro appstoreagent[814]: objc[814]: Class ISPurchaseReceipt is implemented in both /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore (0x7fff88733e78) and /System/Library/PrivateFrameworks/CoreFP.framework/Versions/A/CoreFP (0x10b7cfde0). One of the two will be used. Which one is undefined.
Oct ’20