Uno + Objective C - self

Hey guys, what can I use for ‘self’ in this code snippet? I get a
use of undeclared identifier 'self'
error.

[[NSNotificationCenter defaultCenter]
   addObserver:self selector:NSSelectorFromString(@"orientationChanged:")
   name:UIDeviceOrientationDidChangeNotification
   object:[UIDevice currentDevice]];

You have to write your own Obj-c class (Header and Source) and then you can attach them, term self not accessed from uno files directly.

1 Like