I'm currently finishing my game for iOS using ue4. I'm using some specific iOS Code and try to call Methods using the 'self' variable
void Aaccessactorios::Shareoption() {
[self Sharebutton];//ios
}
the Code is within a prepocessor tag #if PLATFORM_IOS and #endif
I think that I've declared the self variable at the start of my cpp file:
-(id)init
{
self = [super init];
return self;
}
Other Forums Mention that Unreal engine compiles all the cpp .mm at the end, so I don't think that's the issue.
the self variable is used all around the objective c part, so it is crucial to my Code. How do I mix the Code properly and get my self variable to be declared?
Thank you
edit: this is the part i try to recreate https://answers.unrealengine.com/questions/422323/callback-from-objective-c-back-to-the-c-layer.html