```NSNotificationCenter.defaultCenter.addObserver(...
# ios
m
Copy code
NSNotificationCenter.defaultCenter.addObserver(
    observer = orientationListener,
    selector = NSSelectorFromString(OrientationListener::orientationDidChange.name + ":"),
    name = UIDeviceOrientationDidChangeNotification,
    `object` = null,
)
copied from JB example, throws:
Copy code
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Shared_kobjc11 orientationDidChange:]: unrecognized selector sent to instance 0x600000280aa0'
any help?
a
What is the signature of the
orientationDidChange
function?