Skip to content
probablycorey edited this page Jan 12, 2011 · 12 revisions

Questions

  • Q: Can I use luac to compile my lua files to the phone

    A: You sure can! Check out [this page|Luac] for instructions

Common Errors

  • 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", UI.TableViewController, protocols={"UITableViewDelegate", "UITableViewDataSource"}}  
Clone this wiki locally