Community Questions & Answers
[WARN] : Called remove for [object TiUIView]
I am storing the top and left values, then trying to read and pass them to a (new or old) view when needed. I am getting [WARN] : Called remove for [object TiUIView] on [object TiUIWindow], but [object TiUIView] isn't a child or has already been...
FlipBook component
Hello everyone, I'm creating a FlipBook component for Titanium mobile for the iPad. [See this in action](http://dl.dropbox.com/u/12145036/flip.mov) Is in its first version, and all who wish to use it, have questions or can help me, leave a message...
iPad Ad Hoc builds in Xcode getting Failed to Install
Im having an issue getting my Titanium App installed on an iPad - specifically when building from Xcode. (I'm using the Ad Hoc distribution method so that can give the ipa file to a client). What happens is after syncing the iPad with iTunes the app...
SQLite error binding unknown parameter type
I am build an app for iPad, I am getting this error ~~~ Script Error = SQLite error binding unknown parameter type 'TiUIViewProxy'. Value: '[object TiUIView]' at database.js (line 96). ~~~ as I try to save my Ti.UI.createView to a data base so that I...
can not access facebook
hi Its been a couple of days i started working with titanium and got familiar with the framework. Its really cool framework. Now i am building an app trying to connect with facebook.... I also registered an app on facebook developers and got the id.But it...
Where is the debug/console log location on an iPad?
I'm trying to determine if and where the console log is stored on the actual device (an iPad in this case). The log lives in the applications Documents directory in the simulator but not on the iPad. To be clear, this is the log to which Ti.API.trace...
Check if on line
From a programmatic "Best Practice " How would I check if my ios app is online and can send data or if not do nothing ?... this is working fine what I want to be sure of is if there is no connection that the app does nothing not freeze because...
Disable vertical scroll on a bi-directional scrollview
I have a bi-directional scrollview working on a Landscape mode, on orientation switch, i need to disable the vertical scroll. How do you prevent the scrollview from moving vertically? Thanks Daniel
SplitWindow - top down layout of master and detail views.
Is it possible to have top-down partition in split window on iPad in Portrait orientation instead of right-left partition? I want to show the master view at the bottom of the screen under the detail view like...
Custom font renders blurry sometimes on iOS/iPad
See [screenshot](https://dl.dropboxusercontent.com/u/2733882/Screen%20Shot%202013-05-10%20at%2011.28.51%20PM.png) We're using a few custom fonts in our app and we're finding that the font displays blurry in some spots, but only on non-retina iPads. The...
webview crashes app due to memory error
I am loading some local images in a webview, which works fine in the simulator, but it crashes on ios device with memory warning. Is there any way to check how much memory is being used by a webview?
How to manage finishedTransaction through Ti.Storekit Module? Or Use defaultQueue to remove transacion Id from Queue?
Hello, I used Ti.StoreKit module on my Iphone application.And It is works fine, But It could not tackle CANCEL Event and also store its entry into Queue. Now I am frustrated, how to remove transaction ID from "defaultQueue".And how...
I cant test my apps on Iphone/Ipad simulator
Ok, i've got a problem months ago... I have Titanium 3.0.2, Alloy 1.0 and Node.js 0.8 and i cant test any of my apps on ios simulators. i trying cleaning the projects, reseting the simulators... but nothing works, always the same error: ~~~ [INFO] : ...
longpress also triggers click on ipad
i have a longpress event on a table row. the docs says, that the click event is ignored after a long press. that isn't true on ipad. anyone got this problem, too?
iPad Modal window and hiding keyboard on blur
So, I am working on a project where I use a modal window (MODAL_PRESENTATION_FORMSHEET) on the iPad in which the user can see the settings for the app. The problem is that when they first enter a textfield and the keyboard shows up, running...
How to create a custom picker using other controls
See [screenshot of custom picker](https://dl.dropboxusercontent.com/u/2733882/customPicker.png) I know there isn't a way to style the picker control in Titanium. This picker only needs to work on iOS (iPad only). I was thinking I could hack the TableView...
Use native api in a Ipad app with Titanium
Hello i created a SVOD application for a client, and for V2 he require a DRM Secured Video Player (BuyDRM) How can i use this native API (provided by BuyDRM) in my Titanium project? Thanks by advance
Keyboard not hiding upon blur() on iPad
Hi everyone, Have anyone had a problem where the `blur()` function was removing focus from the textField but wasn't hiding the keyboard? I'm running on iPad (SDK 2.1.4, a little old, I know, but that's another topic) and noticed this happens on a modal...
Get the last inserted record
I want to retrieve the last inserted record...now I am getting the first record ... and db.lastInsertRowId I cant seem to make return the singular record I want ... Any ideas ? ~~~ var SelectStroke = function(){ var db =...
Disable selection/click/touch of single TableViewRow
I have a TableView with multiple rows. The top row we're just using as a heading and thus we don't want users to be able to click/tap it. Here's the code that generates the row: ~~~ var row = Titanium.UI.createTableViewRow({ height:...
Add Event Listener for image not WORKING????
Hi everyone Add event listener in sub pages not working. Dose any one know the reason?? here is my app.'s ~~~ var win = Titanium.UI.createWindow({ backgroundImage: 'images/44.jpg', //opacity: .4 }); win.orientationModes = [Ti.UI.LANDSCAPE_LEFT,...
Memory leaks (releasing memory)?
Hi there, It seems like Titanium causes memory leaks, on the iPad at least - can anyone confirm this, or tell me what I'm doing wrong? I'm using a function spawned by calls to setTimeout to change the backgroundImage of some views. This process seems...
Best Practice question
it is best practice to allow my app to create the Unique User ID " Ti.Platform.createUUID(); " for a table in my database or should the database randomly generate it and return it to the app ?
Sqlite
Where in the SDK can I find the database files I generate... here is the code I'm using to generate... I can't find the DB so I don't know if the db is generated or not generated... I'm getting no errors ... ~~~ var db =...
implementing time picker in iOS
Titanium Studio Version: 3.0.2.1361317434 device: iPad iOS SDK: 6. simulator Version: 6.1 Mac OS X version: 10.7.5 Xcode version: 4.6.1 Hi, i get a problem working with time pickers. The code bellows goes perfectly in Android but doesn't in iOS. It takes...
How can I draw a line?
I find it very hard to believe that there's no simple way to draw a line using Appcelerator. It seems very common among iOS apps (I'm making an iPad app). I want the user to be able to touchmove over a view and have a line appear where they have drawn. My...
I cant test my app on Iphone/Ipad
Please, I need help. I cant test my app on Iphone/Ipad device, every time y try to test on emulator i get the same error: ~~~ [INFO] : Writing Xcode module configuration: module.xcconfig rary/Application...
Save Login data
Pragmatically how would I ... My ipad app have a log in screen... what is the best way & simplest way to save to log in info so next time they open the app the information is save and the can press the button and go
get value from Titanium.UI.PICKER_TYPE_TIME
Titanium Studio Version: 3.0.2.1361317434 device: iPad iOS SDK: 6. simulator Version: 6.1 Mac OS X version: 10.7.5 Xcode version: 4.6.1 Hi, i get a problem when trying to get a value from time pickers The code bellows goes perfectly in Android but not...
Can't AirPrint a view converted to an image?
I am trying to print a view I have converted to an image with the toImage method. I have successfully used this method to get an email-able image. So, following some advice found here, I tried doing the same and saving the image and printing it: ...
navigation group vs tabgroup
I started my ipad app with the default project that is a tabgroup... I want to navigate windows using custom buttons but when I try to use win2.open() method... Nothing happens... Should i replace tabgroup with navigation group....or is there a better way?
How to call another application in titanium
I have an application which was written for Ipad2, and I using Titanium 1.7.0. I want to call another application of IPad such as camera, safari, ... How do I do? Please help me !
splitview using commonjs
Hi, I am trying to use the commonjs approach in an app for iPad only utilising the split view. Currently using Titanium 3.0.0.GA iOS 6.1 ~~~ var split = {}; var winMaster = Ti.UI.createWindow({ backgroundColor: 'yellow', title:...
platform=ios formFactor=tablet not working
Hi! I'm trying to change the width of my TableView with id table. ~~~ "#table" : { top: 200, height: 100, width:280 } "#table[platform=ios formFactor=tablet]" : { width:500 } ~~~ But this is not working. Is there...
don't want to assign JSON data to table
All the examples I have found return JSON retrieved data to a table ... I don't want to do that I want to return the data to various labels around the screen... my json data ~~~ { "Stats": [ { "Stat":...
Changing image according to platform
Hi everyone! I'm trying to change the image of my app according to the device, mobile or tablet. What am I doing wrong? ~~~ "#header[platform=ios formFactor=handheld]" :{ image:"/images/header.png" } "#header[platform=ios...
it's possible to use Google Maps in Ipad ios 6?
Hi, I'm developing an app with geolocalization but the customer want Google Maps instead of Open Street Maps this change is possible? There is some kind of solution for use Google Maps en iOS 6?
Programmatically showing/hiding of master view in splitwindow
Hi, in a map appI want to hide the masterview in start. If user clicks on annotation in map the masterview should appear. Here my concept: ~~~ if (Ti.Platform.osname === 'ipad') { var masterwindow = Ti.UI.createWindow({visible :...
synchronizing slider with videoplyer..
hi, I have slider and I want to synch slider value with videoplayer playbackTime..any idea how to do that? playbackTime should change when we change slider position.. thanks..
Emulator is not showing all the content in the window
Hi. It seems that i get such a mistake inside some code line, titanium console doesn't mark errors or something like this, but emulator does only open an empty window, i.e. the content of the window is not appearing. Wait somebody can help me. Best...
Adobes "Content Viewer" (.issue) on Titanium?
Hi, with the "Adobe Digital Content Bundler" I can produce files for iPad with suffix .issue. Is there a possibility to view in inside of Titanium?
o querry a database on a server to return data
Im got a project where I need to querry a database on a server to return data. Im gonna query my database using php to return Username and Opp Name from my table... Are there any tutorial available how to do this with appcelerator ? meaning how would I...
Scope in commonJS module
This code: ~~~ function Model() { return this.init(); } Model.prototype.init = function() { var self = this; self.getVehiclepos(); this.cron = setInterval(self.getVehiclepos, 5000); return this; }; Model.prototype.getVehiclepos = function()...
Geo Location Issue
~~~ Central.prototype.getDeviceLocation = function(callback) { var location = new Object(); location.lat = 0; location.lng = 0; Titanium.Geolocation.purpose = "Recieve User Location"; Titanium.Geolocation.accuracy =...
Hi Back button is not showing
Hi everyone, I am in strange problem. I have used the navGroup for screens navigation in my App . But In signup window back button is not shown, don't know where I am doing mistake. Following is my code: That is where I am opening the window which...
iOS emulator suddenly crash
Hi, i get an error in titanium console and emulator crash suddenly. If somebody helps me thanks. im getting that in the console ~~~ [ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'. [ERROR] : Reason: [ERROR]...
application crashes when implementing a picker
Morning. I'm trying to convert an android app in an iOS one, the code bellow works perfectly in android but crashes in iOS. if somebody can help thanks ~~~ var inputAnio = Ti.UI.createPicker({ top:"330px", left:"67%", }); var...
Photo gallery from toolbar: view is not attached to the current window
I'm trying to open a photo gallery from a toolbar button. The toolbar and button are defined using Alloy. See below for my code. Other popovers are able to launch from this toolbar perfectly well using the same basic setup. But the photo gallery fails...
Alloy: splitView, positioning elements and orientationChange
Hi I work on an Alloy project under MacOs 10.8.x and use Titanium Studio 3.1.0 with SDK 3.1.0.GA. I use a splitView within a Tab and have problems positioning elements not only but especially when an orientation change event is happening. To demonstrate...
Titanium Alloy Crashes When Including a Backbone Model in Call to fireEvent
The following code is a snippet from a widget controller. The function _clickDataCenterButton is an event handler for a click event for a Ti.UI.Button. The dataCenter parameter is a data center (Backbone) model. The info statement is sent to the console...