Post

Replies

Boosts

Views

Activity

How to handle functions with the same name in multiple libraries
I am creating an application for ios. I include two static libraries in my application. However, if the same function name exists in two static libraries, the function that was first included as a library will be called. (Static library written in Objective-c) Is there any way to solve this? Is it possible to solve it by using framework? Note that the function names of the library are specified by the standard, so the function names cannot be changed. Best regards.
1
0
423
Jul ’23
About the "setNeedsUpdateOfSupportedInterfaceOrientations" function
I have a screen rotation problem on iOS16. I found that it can be improved by adding the following processing. if (@available(iOS 16.0, *)) { UIWindowScene *windowScene = (UIWindowScene *)[[[UIApplication sharedApplication] connectedScenes] allObjects].firstObject; UIViewController *rootView = [[windowScene keyWindow] rootViewController]; [rootView setNeedsUpdateOfSupportedInterfaceOrientations]; } It worked fine when built with XCode14. But it also worked fine when built with XCode13. Why is this? Can "setNeedsUpdateOfSupportedInterfaceOrientations" be used without XCode14?
1
1
921
Oct ’22