[AC-2413] "Creating_Your_First_Titanium_App" example doesn't run
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2014-01-26T02:36:39.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Documentation |
Labels | n/a |
Reporter | Adrian Hill |
Assignee | Ritu Agrawal |
Created | 2014-01-24T14:24:20.000+0000 |
Updated | 2016-03-08T07:41:27.000+0000 |
Description
After typing in code for iOS and running the following error is displayed: "Can't find variable: addBook at index.js (line 55)
Resolving this ticket as a duplicate of TIDOC-1497.
This is not a duplicate of TIDOC-1497, it is a different problem. If you go through the tutorial as it stands you will see that it doesn't work.
Can you reproduce your problem after changing: function showBook() { to: function showBook(event) {
added this to index.js to make it work. Doesn't say anything about it anywhere in the tutorial, really confusing to us noobs :) function addBook (event) { var addbookview = Alloy.createController("addbook").getView(); if (OS_IOS) { $.navGroupWin.openWindow(addbookview); } if (OS_ANDROID) { bookview.openWindow(addbookview); } }