-
Notifications
You must be signed in to change notification settings - Fork 0
- Does Wax work with Cocos2D?
Yes! There is also a sample Xcode project you can use as a starting point.
- Can I use luac to compile my lua files to the phone?
You sure can! Check out this page for instructions
- Do I need to use Git to download Wax?
No, you can also download it via this url https://github.com/probablycorey/wax/archives/master
-
Error invoking method 'addSubview:' on 'UIWindow' because -[??? superview]: unrecognized selector sent to instance?
If you are trying to add a UIViewController, make sure you are adding the view, not the viewController.
-
-[NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0xXXXXXXXX?
Objective-C expects a string but you sent it something else. If you want to send an object as a string use the tostring() function first.
-
Why aren't my delegate/datasource methods being called?
Did you declare the protocols in your waxClass? It should look like this.
waxClass{"MyController", UITableViewController, protocols={"UITableViewDelegate", "UITableViewDataSource"}}
- Could not find protocol named 'XXX'?
First try adding the protocol to the file ProtocolLoader.h
located in your project (This file is included
in the Wax XCode template.) If that doesn't fix the problem, follow the steps below.
Are you using a framework (like MapKit
or MessageUI
) that isn't included by default? You
will need to add it to your project
-
In Xcode, right-click "Frameworks" -> "Add" -> "Existing Frameworks".
-
Then select "XXX.framework" and click OK.
-
In main.m import the framework. For example, with MapKit you would type
#import <MapKit/MapKit.h>