I copy my corona code to CoronaCards(ios) get this error…
Error msg :
Runtime error
?:0: attempt to index a nil value
stack traceback:
?: in function 'newTextField’
how can I fix it.
I copy my corona code to CoronaCards(ios) get this error…
Error msg :
Runtime error
?:0: attempt to index a nil value
stack traceback:
?: in function 'newTextField’
how can I fix it.
Our Lua native.* APIs are not supported on CoronaCards for iOS. Please have a look at what’s supported/unsupported here…
http://docs.coronalabs.com/daily/coronacards/ios/support.html
CoronaCards only supports a limited set of APIs because it is a “View” that is intended to be added to an existing app’s UI. Because of this, it does not have access to your AppDelegate or your view controllers.
If you want access to all of Corona’s Lua APIs and to have Corona control your app, then Corona Enterprise is the way to go. Corona Enterprise provides an iOS app template with Corona integrated into it and controlling it.
Our Lua native.* APIs are not supported on CoronaCards for iOS. Please have a look at what’s supported/unsupported here…
http://docs.coronalabs.com/daily/coronacards/ios/support.html
CoronaCards only supports a limited set of APIs because it is a “View” that is intended to be added to an existing app’s UI. Because of this, it does not have access to your AppDelegate or your view controllers.
If you want access to all of Corona’s Lua APIs and to have Corona control your app, then Corona Enterprise is the way to go. Corona Enterprise provides an iOS app template with Corona integrated into it and controlling it.