title: error: Use of undeclared identifier 'self' c++-objective c mixing
body: <p>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</p>
  
  <pre><code>void Aaccessactorios::Shareoption() {
      [self Sharebutton];//ios                 
  }
  </code></pre>
  
  <p>the Code is within a prepocessor tag #if PLATFORM_IOS and #endif</p>
  
  <p>I think that I've declared  the self variable at the start of my cpp file:</p>
  
  <pre><code>-(id)init
  {
      self = [super init];
  
      return self;
  }
  </code></pre>
  
  <p>Other Forums Mention that Unreal engine compiles all the cpp .mm at the end, so I don't think that's the issue.</p>
  
  <p>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?</p>
  
  <p>Thank you</p>
  
  <p>edit: this is the part i try to recreate <a href="https://answers.unrealengine.com/questions/422323/callback-from-objective-c-back-to-the-c-layer.html" rel="nofollow noreferrer">https://answers.unrealengine.com/questions/422323/callback-from-objective-c-back-to-the-c-layer.html</a></p>