Hi, I’m trying to show a native alert on iOS from my c*+ code. In order to do so, I tried to imitate the cocosdenshion implementation. I added a cpp bridge class that calls an objective-C class that will actually show the alert.
The alert works, but the delegate event after clicking at the alert options doesn’t seem to work. If I can get this to work I’ll write a tutorial in my blog… many people has the same problem. Can you help me please?
h2. CLASS IMPLEMENTATION:`#import "iOSHelper_objc.h"
implementation iOSHelper\_objc"This is the title"
“This is the message”"OK"
alertDialog = [[UIAlertView alloc]
"I know what you did" “Ok”
endh2.**CLASS DEFINITION (HEADER)*
`interface iOSHelper_objc : UIViewController