Community Questions & Answers
Titanium.Platform.model ?
I am just banging my head here trying to get this to work. ~~~ if (Titanium.Platform.model =='iPhone 3_2' ) //Detect iPad 3.2 { Do this view } if (Titanium.Platform.model =='iPhone 4' ) // Detect iOS 4+ { Do that other view } ~~~ For some reason I can...
Change text color based on value
My label text comes from a remote JSON feed, and I want the color of the text to be different based on whether the data contains a minus symbol or not. In particular how would I go about identifying if the '-' character is present. Thanks for your help !
Cryptic Trace statement: Expected to see a statement and instead saw a block.
During the debug and trace, I often this remark inside my switch() block: Problem at line 298 character 21: Expected to see a statement and instead saw a block. { break; } And it cannot continue. What is this and how to avoid?
Database code=3 error sqLite
Hi, here's my problem : var row = db.execute('SELECT nom,prenom FROM pcUser where nummobile=? and motdepasse=?',email,pass); then I do : value:row.field(0), It works perfectly on the IPhone simulator, BUT does not on my IPhone 3G and returns the...
Showing 1-4 of 4