Community Questions & Answers

Project Failed to Build after...

Hi, after updated Titanium to 3.2.0 I am getting every time error with building the project... I have no idea what is going on, I have tried Xcode 5.0 and also 5.0.2. ~~~ ... [INFO] : Finished building the application in 23s 460ms [INFO] : Running...

How to deal with white space in Alloy

Take the following code snippet: <View id='container'> <View id='child' width=100 height=100/> <View id='child1' width=100 height=100/> <View id='child2' width=100 height=100 /> <View id='child3'width=100 height=100...

Cannot use 3.4.0 RC SDK

Hi. I followed the steps in: http://www.appcelerator.com/blog/2014/09/announcing-our-ios-8-support-with-appcelerator-sdkstudio-3-4-0-release/ When I run 'ti sdk' I get the right SDK selected: Installed SDKs: 3.4.0.v20140918112758 [selected] ...

Mac os x Unable to find command 'build'

i' ve done mobile project on android and now i want to compile it to iOS. I had the following problem [http://developer.appcelerator.com/question/147274/problem-with-a-new-project-titanium-on-mac-help] but it's solved now. Now I issue new problem while...

com-facebook-sdk-error-5 login error

I am having trouble logging into facebook from a specific device using a username and password. I get the error: [10:12:25] iPhone mc_mobile_tunnel[1672] <Notice>: (Note ) MC: mc_mobile_tunnel shutting down. <Warning>: Error: HTTP status...

Swipe gesture won't swipe container off

// this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // // create base UI tab and root window // var win1 = Titanium.UI.createWindow({ title : 'Tab 1', ...

play sound then resume media player

Hi all, I am trying to play to short .wav sound and if any music was playing in backgrouund such as iPod, pandora spottily etc. it should start playback of the original music. If possible, I would like to pause the music and after a short wav file is...

can no complie ios apps

I tried to complie a ios app , but titanium console reports Titanium Command-Line Interface, CLI version 3.4.0-beta, Titanium SDK version 3.4.0.v20140903121714 Copyright (c) 2012-2014, Appcelerator, Inc. All Rights Reserved. Please report bugs to...

Sharing with Twitter

Hi, I've been researching through the Q&A and also googling a lot about the sharing with twitter and i've came across a lot of suggestions and solutions that actually are not currently working. So my question is, does someone has a solution that...

[iOS iPhone 4] Camera overlay bug?

I'm trying to add an image overlay to the showCamera(). showCamera() itself works fine. But when I add (any) overlay, the showCamera() view seems stretched out vertically. (tap to focus area is not a square space, but more like a rectangle) When I take...

Get orientation on load

Hello, I have some functions to run once my orientation changes, so I've made a: ~~~ Ti.Gesture.addEventListener('orientationchange', function(e){ // blablabla }); ~~~ However, I also want to run that through on application startup, so I've made the...

How to scroll to top of a ListView with headerView

I am writting titanium mobile app in iOS. I have a ListView and I use "$.listView.scrollToItem 0, 0", to scroll to the top of the listView. but if there is a headerView in the listView, it just scroll to the first item, the headeView is...

Open Email dialog in Gmail App

I have an app which is for IOS version. But the email dialog only can be opened by iphone default mail app. How do i make option for the email dialog can be opened either IOS default mail app or Gmail app ?

ListView blank rows

SDK Ver. 3.3.0 Problem with ListView: I have a ListView with complex views (images, titles atc.) On the first time the ListView is shown its works perfect, even if I reloading (multiple times) the data/rows all works well. But, when removing the view...

View - Opacity mask

Hello guys, I am fighting with an opacity mask - effect in Titanium. Basically what I am trying to do is something like this [here](http://creativetechs.com/tipsblog/transparent-gradients-in-illustrator). I don't need completely the same thing. What I need...

Facebook module's login event not firing

Just as the title suggests, the Facebook module's login event isn't firing. Works in the simulator however the simulator doesn't appear to be using the iOS 6 built-in Facebook functionality. Here's an example of the code I'm using: ~~~ if...

ACS Cloud push notifications iOS

Is there an issue with ACS production push notifications? I have 2 acs apps in Titanium and both can successfully subscribe for push notifications using development certificates. When I switch to production I always get an error saying: Application key...

Help sorting JSON

Ok, I am banging my head against the wall trying to figure this out. I'm sure it's simple and I am just too close to see it. What did I miss? This is the JSON that is received: ~~~ { "content": [ { "item_id":...

A workable solution to textarea auto height

Here is some code that I used to get the text area height to adjust automatically. The width is fixed. So, with the font I used, it worked out that 16 characters = 1 line and height=36 covered about 1 line. Then just split the lines, count how many...

Array sort is not working

I am trying to sort an array ,but it looks that it is not working at all. ~~~ var arr = [ { distance: 1 }, { distance: 3 }, { distance: 7 }, { distance: 3 }, { distance: 5 }, { distance: 7 }, { distance: 3 }, { distance:...

Basic navigation

Hi all, I'm a newbie here and maybe this is a basic question but i looked around and i can find an answer, maybe you can help me. I'm developing a Mobile application for ios and Android using Alloy (v 3.3.0). The basic structure is like this: ![alt...

Database issue

Application type:mobile,Titanium sdk:3.3.0 GA,Titanium studio:3.3,platform:android and ios,OS:Mac OSX 10.9.3 Hi, When I am trying to access the database for the first time its saying no such table exists but after it works fine: Any wrong in my...

Possible Stupid question

excuse my lack of understanding, I must be missing something completely obvious here in this logic..i want to load a webview( different ) every 7 days..ie if i start on tuesday www.abc.com next tueday it will be ww.abc1.com...and so on... ~~~ var...

Showing 1-50 of 8,567 1 2 3 4 5 6172