Marko Novaković
12/06/2024, 8:46 PMNSNotificationCenter.defaultCenter.addObserver(
observer = orientationListener,
selector = NSSelectorFromString(OrientationListener::orientationDidChange.name + ":"),
name = UIDeviceOrientationDidChangeNotification,
`object` = null,
)
copied from JB example, throws:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Shared_kobjc11 orientationDidChange:]: unrecognized selector sent to instance 0x600000280aa0'
any help?Andrei Salavei
12/08/2024, 2:32 PMorientationDidChange
function?