
I am not even remotely familiar with lua or how it works with Objective-C, so I can't really comment on any of these aspects of your code.
What I can do of course, is comment on the Objective-C bits, starting with your header file.
Why is there anything in your header file at all?
#import <UIK...