Posts

Post not yet marked as solved
3 Replies
789 Views
In an objective C app I'm now using (in every view controller): (void) traitCollectionDidChange: (UITraitCollection *) previousTraitCollection { ..... } to handle dark mode changes. This is all very easy to implement. traitCollectionDidChange is deprecated in iOS 17. In the documentation there is no objective C example on how to work with the new iOS17 registerForTraitChanges function. Hard to figure out how to do this. Am not familiar with Swift, so the wwdc video could not help me. Where can I find some objective C examples? Best regards/Rolf Netherlands
Posted
by RolfS.
Last updated
.
Post not yet marked as solved
1 Replies
567 Views
Use the CATransition animation to let the user scroll through the pages of a tutorial.Now in iPadOS 13.6 beta 2 this causes screen to black out for a second before the next page is shown.Does not happen with kCATransitionFade but will all other animation types.I use the kCATransitionPush with subtypes kCATransitionFromRight and kCATransitionFromLeft.Code:CATransition *animation = [CATransition animation]; [animation setDuration:0.4]; [animation setType:kCATransitionPush]; [animation setSubtype:kCATransitionFromRight]; [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]; [[slidingView layer] addAnimation:animation forKey:nil];
Posted
by RolfS.
Last updated
.
Post not yet marked as solved
0 Replies
625 Views
Noticed that with iOS 13 beta 2, the prefersStatusBarHidden function is called for every user tap, just before the event reaches the app. Not under iOS 12.The only way to avoid this, seems to set the plist key UIViewControllerBasedStatusBarAppearance to NO.Is this intentional? Could have performance consequences for my app.
Posted
by RolfS.
Last updated
.