Community Questions & Answers

HttpClient send is slow

I've done a lot of searching and couldn't find any reference to XHR being slow... I'm trying to turn to turn on a lightbulb (it has a ip address). If I run the following from my MAC terminal the light turns on almost instantly (under 100ms): ~~~ curl -X...

setTimeout doesn't work in same pace

I want to exec one function in every 500ms. like this ~~~ setInterval(do_animetion,500); function do_animation(){ //some animation logic } ~~~ but, animation doesn't work every 500ms in iOS Device. This means sometimes gap of 2 do_animation exec is...

Can't build new app

Hi, I installed Titanium on my Mac a couple of weeks ago. I have been working on a couple of apps and everything have been working great (Thank you Appcelerator for a great improvement in documentation, and for ACS). Today when i created a new app, i...

Slider - missing half of thumb

Hi, I have problem with Thumb picture in Slider, half of image is missing when Thumb is on Right or Left ( 0 / 100 ). I tried change size of Thumb Image ( Small - Big ) ,but no change still is half of image missing :( [For...

xcode module for Titanium parameter issue

Hi to all, i've made a simple module for start using it with titanium. in xcode i made this function ~~~ -(id)test:(id)args { NSString *value = [TiUtils stringValue:args]; return value; } ~~~ and in titanium i call this function...

Update imageView width based on new image

I got an imageView in a tableRow. I want to update the image property to an other image on a button click. It works, but the new image still got the size of the old image. If I flip my screen to landscape it will get it own size. But I want it to have it's...

Switch TitleOff and Titleon Not working

Hi, i have created a switch for my android app and the title on and off is working properly in android 4.0.4 but not working properly in Android 4.2 . I am using Titanium Developer 1.2.2

simulator closes "immediately"

Hey, since a few days i can't compile ios projects in titanium Studio. No matter what code, what hardware in the simulator and so on ..... :( The Simulator starts, and closes immediately. i've reinstalled titanium and xcode a few times - no result. Any...

Reusable picker

I hope the title is clear enough. I have followed a sample from [this site](http://cssgallery.info/making-a-combo-box-in-titanium-appcelerator-code-and-video/), it helped me a lot and it worked but I'm having problem trying to implement multiple of them...

Switch TitleOn and TitleOFF

I have created a switch and wen i turn on it shows a green bar else nothing....this working fine on my emulator but not working in the device ....

about notification

I want to customize the notification,when I set the width and height,the notification is not change,why? it code is : var toast = Ti.UI.createNotification({ message:"Please Stand By", duration: Ti.UI.NOTIFICATION_DURATION_LONG, width:'60%',...

Hide Keyboard?

Yeah, I know this question has been asked to death, but I might as well kick a dead horse since my answer or my witnessed behavior isn't in any other question... I have a TextArea object, I give it focus, when I'm done I ask for it to blur() expecting the...

AppendRow and ScrollToIndex

I am using table view with 5 rows. What I wish to achieve is that the table scrolls to the bottom after an insertion of a new row. In my case, it should be something like the following ~~~ var newRow = Ti.UI.createTableViewRow({ title : 'New...

TableViewRow background streching

Hey All, I hope this is just something I'm over looking, but my background image is just being stretched rather than tiling across. it's just a 1 x 44 image. ~~~ var tableView =...

iOS Module does not fire events

I'm writing a module for a hardware device. I'm trying to fire events from module back to JS when device is attached and disconnected. Event's in module are never fired. Here is what I have: -(void)_listenerAdded:(NSString *)type count:(int)count { if...

mp4 AudioPlayer iOS

Using 3.1.0 sdk: Trying to play a remote .m4a (audio mp4) file with AudioPlayer. The .m4a file was created with AudioRecorder. In KitchenSink Resources/ui/handheld/ios/phone/sound_session_module.js: replace: ~~~ var audio =...

Webview pass Ti.App to remote page

Hi, I have a problem with webview. I want to show a remote page and give that remote page access to the local Ti.App-object. Now i understand that this is prevented for security reasons but that wont be an issue in this application. I have tried the...

App store version does not work

We have a strange problem. During testing everything in our iOS version works perfect: in the simulator, on multiple devices and even if we make an ad hoc version and test that one it still works. However, for some reason when we build it for the app store...

sdcard directory listing

~~~ var path = Ti.Filesystem.externalStorageDirectory+"media"; var dir = Ti.Filesystem.getFile(path); var directoryArr = dir.getDirectoryListing(); var dir_length = directoryArr.length(); ~~~ The dir_length is always zero. No mather what...

Showing 27,851-27,900 of 68,174 1553 554 555 556 557 558 559 560 561 562 5631364