appcelerator-mobile

What to do about “Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.”

北战南征 提交于 2019-12-19 17:13:09
问题 I'm writing an iPhone app using Appcelerator Titanium Mobile. I am hiding and showing the tab group based on what window has focus. dashWin.addEventListener("focus",function(e) { if (dashWin.tabGroupVisible == true) { dashWin.tabGroupVisible=false; tabGroup.animate({bottom:-50,duration:500}); } }); The code above hides the tab group when dashWin receives a focus event. However, I see this message in the Titanium console when the event fires while running in the iPhone simulator: Finishing up

Multiple Titanium progress bars in a table view for simultaneous uploads?

元气小坏坏 提交于 2019-12-13 05:18:43
问题 I am trying to display the progress of multiple xhr sends in a table view. This is my first shot at a table view (which also is not scrolling for some reason), and I can't figure out the appropriate way to connect the bars to the onsendstream. I appreciate any comments on the rest of my code as well. my window function 回答1: I don't claim that multiple simultaneous XHRs are stable, but it is working for me in the simulator. This question was more about the specific UI task whether or not the

Titanium - Passing Variable to new window

笑着哭i 提交于 2019-12-13 02:50:57
问题 I am having a problem passing variables in my iphone titanium App. Below is my AppTabGroup.js file. There is an event listener called 'grantEntrance'. When this is fired I need the variables event.name and event.email passed to all the new tabs. For some reason this is not working for me. I end up getting undefined errors. I think my question is how do I set global variables? Like event.name so it shows up anywhere in the application. function AppTabGroup() { //declare module dependencies var

Sending email through Appcelerator Cloud API

你说的曾经没有我的故事 提交于 2019-12-12 18:46:53
问题 I was trying to send email through Appcelerator Cloud Service, in my Titanium app. The code I'm using is the standart one, given at the documentation site. But the email is not being sent. Cloud.Emails.send({ template: 'welcome', recipients: '*******@gmail.com' }, function (e) { if (e.success) { Titanium.API.info('Email sent successfully.'); } else { Titanium.API.info('Error:\\n' + ((e.error && e.message) || JSON.stringify(e))); } }); It give the this error, 'Email template welcome is not

Appcelerator Titanium: Code Sign error: No codesigning identities found

心不动则不痛 提交于 2019-12-12 10:55:49
问题 This is driving me crazy, I have spent about 10 hours now deleting and regenerating Apple keys and provisioning profiles for my Appcelerator Titanium iPad app. I had this all working and compiling 1 year ago, then my Mac crashed and I had to reformat and start over. I cannot get past this error: "Code Sign error: No codesigning identities found (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings ('Okland Construction 2014') were found.

Get Phone Number(android) in Titanium

自古美人都是妖i 提交于 2019-12-12 05:56:33
问题 How can I get phone number in android? Sample Code: var contacts = Titanium.Contacts.getAllPeople(); Titanium.API.log(contacts[0].phone['mobile'][0]); //in iOS, returns "01012345678" fine :) Titanium.API.log(contacts[0].phone['mobile'][0]); //in Android, returns "" :( Titanium.API.log(contacts[0].fullName); //in Android & iOS, returns "test Name" fine :) Titanium.API.log(contacts[0].phone); //in Android, returns "" :( 回答1: Try the following code, It worked with me //Getting all the contacts

Appcelerator: Webview on iPhone with an iFrame and width

我的未来我决定 提交于 2019-12-12 05:53:37
问题 Good evening, I've been having some issues with a view that has a webview inside. The webview is inserting an iframe with an external source (an html on another domain). I'm using an iframe since I need to use the external HTML and I need to communicate with click/touch events with my application. The main issue is that the webview is inserting unwanted horizontal scroll bars (because the iframe content is too big) The code looks like: Webview: var webview = Titanium.UI.createWebView({ url: "

Titanium Android showCamera error unable to create file for storage

醉酒当歌 提交于 2019-12-12 05:47:38
问题 I am trying to use the device camera in my application , but there is an error shows up and the camera is not shown. The error is unable to create file for local storage My Controller code is function choosePhotoDialogClicked(e) { if (Ti.Media.hasCameraPermissions) { openCamera(); }else { alert("No camera permission. Asking for Permission"); Ti.Media.requestCameraPermissions(function(e) { alert('request result'+JSON.stringify(e)); if (e.success === true) { openCamera(); } else { alert("Access

How to access global value from commonJS module in Appcelerator?

陌路散爱 提交于 2019-12-12 04:47:17
问题 For long time I was creating apps by making global variable which was accessible via modules I load. var myApp = { windows: {} } myApp.windows.mainWindow = require('libs/pages/mainWindow').create(); myApp.windows.mainWindow.open(); By calling myApp.windows[windowName][functionName] I could manipulate other windows (for example update lists) from within the commonJS module. I could also close, open other windows I found that calling global variables from within commonJS module is not good

Is there any module which allows cropping an image dynamically in Appcelerator for iOS platform?

穿精又带淫゛_ 提交于 2019-12-12 03:33:50
问题 I am developing an ios mobile app.In that my requirement is user should able to allow crop the photo gallery images dynamically.is their any free module or any alternate code to achieve my requirement Thanks in advance 回答1: You can use http://gitt.io to search for modules. You'll find: https://github.com/caspahouzer/TiCropImageEditor (forked from https://github.com/EtnaTraining/TiCropImageEditor with 64bit and some other patches) The modules implement PEPhotoCropEditor 回答2: Also check https:/