titanium

Building Native View using iOS module and using them in Titanium

夙愿已清 提交于 2019-12-04 13:19:49
问题 I want to build an iOS module in which I have a viewController class with its .xib file. now the problem is how to call that view from my titanium code. I know that there are view proxy available but dont know how to use them due to not so good documentation. Till now I have created a module where non graphical data can be passed but what about getting View controller from my module. I have already checked the appcelerator wiki, but that was not helpful Any tutorial that will guide me will be

Titanium Android module upgrade to SDK 6.0.0

心已入冬 提交于 2019-12-04 12:55:44
问题 I am trying too recompile my old modules to 6.0.0.GA sdk as its mandatory to make it work on 6 and above sdk. But I am not able to build it as its giving error. Development environment: Android NDK r13b Titanium SDK 6.0.0.GA Appcelerator studio 4.8.0 CLI version 5.0.10 Android SDK 23 I am getting this error : BUILD FAILED /Users/krishna/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/module/android/build.xml:347: The following error occurred while executing this line: /Users

NavigationGroup android in Titanium

感情迁移 提交于 2019-12-04 07:50:12
Hi Im new to titanium which allow developer to create cross platform apps. I need to create a navigation group that works with both android and iOS. is there any clear solution ( as Ti.UI.iPhone.createNavigationGrou() only works on iphone, Thank you I have the following NavigationController that lives in the android and iphone folders: android var NavigationController = function() { var self = this; self.open = function(windowToOpen) { //make "heavyweight" and associate with an Android activity windowToOpen.navBarHidden = windowToOpen.navBarHidden || false; if(!self.rootWindow) { windowToOpen

encodeURIComponent algorithm source code

你。 提交于 2019-12-04 07:22:31
I am developing an application in titanium using Javascript. I need an open source implementation of encodeURIComponent in Javascript. Can anybody guide me or show me some implementation? The specification for this function is in 15.1.3.4 . Modern versions (2018) of V8 implement it in C++. See src/uri.h : // ES6 section 18.2.6.5 encodeURIComponenet (uriComponent) static MaybeHandle<String> EncodeUriComponent(Isolate* isolate, Handle<String> component) { which calls into Encode defined in uri.cc . Older versions of V8 implemented it in JavaScript and distributed under the BSD license. See line

Titanium SDK 3.2 [ERROR] : Invalid “--ios-version” value “7.0” 7.0.3

徘徊边缘 提交于 2019-12-04 07:19:37
When I upgraded to titanium SDK version 3.2, I had an error when running on iOS says: titanium Invalid "--ios-version" value "7.0" Accepted values: 7.0.3, is there any possible way to solve this ? I had the same issue. I were able to solve it by changing the tiapp.xml node changed <sdk-version>3.1.3.GA</sdk-version> to <sdk-version>3.2.0.GA</sdk-version> Hope this helps minimum iOS version to work with Ti sdk 3.2.0 is 7 so you need to set iOS version to 7. you can do that by right clicking on your project root folder then choose Run As-> Run Configuration option where you can set ios sdk. Not

Want to produce random numbers between 1-45 without repetition

被刻印的时光 ゝ 提交于 2019-12-04 07:06:04
问题 I have come across a very strange problem. I have tried to find its solution but in vain. My problem is that I want to create a random number between 1-45 and I don't want that number to repeat again. 回答1: Random selection, by definition, will repeat randomly. However, you can build an array containing each of your numbers and then shuffle the array, producing a random order of numbers without repetition. var nums = [], i; for( i=1; i<=45; i++) nums.push(i); nums.sort(function(a,b) {return

How to store UserID username in Titanium

霸气de小男生 提交于 2019-12-04 07:00:38
My app is similar to facebook. I want to retain the userID/Username upon login screen, so that i could use it at rest of the application for queries online data. I tried storing it in a javascript object after successful login, but it gets washed away when i move to other screens. Thanks You can use the App.Properties API. Example, right from the docs . Titanium.App.Properties.setString("my_prop","cool"); if(Ti.Facebook.loggedIn) { if(Ti.App.Properties.hasProperty('fbid')) { var fbid = Ti.App.Properties.getString('fbid'); } } You can use the hasProperty to verify they have logged in in the

Appcelerator Could not find method android.app.Activity.checkSelfPermission

假装没事ソ 提交于 2019-12-04 05:53:25
问题 I cant seem to get geo location to work on Android just seem to get the following bug. [INFO] : dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method ti.modules.titanium.geolocation.GeolocationModule.hasLocationPermissions [WARN] : dalvikvm: VFY: unable to resolve virtual method 32: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I [INFO] : dalvikvm: Could not find method android.app.Activity.requestPermissions, referenced from method

How to submit an app to the Apple App Store from Windows

时间秒杀一切 提交于 2019-12-04 04:11:36
问题 If I develop an app using Phonegap or Appcelerator Titanium on Windows and I want to submit my project to Apple Store, can I do it from Windows environment? Using Windows: Can I create an Apple developer account? Can I submit the app to Apple Store? Can I build iOS project on Phonegap Build, for later submission on Apple Store? I'm aware that an App Store license is $99 per year. I know that for Android phones, Windows and Google Play have no problem, but not sure about iOS phones with

How to create a header bar with buttons in Titanium JS?

时光怂恿深爱的人放手 提交于 2019-12-04 02:04:04
问题 I'm using Titanium Alloy to build an app and I'm trying to create a header bar with buttons in it, similar to the contacts app, as pictured below: This header has the title in the middle and buttons either site. I've been looking everywhere for a way to do this in Titanium but I can't find anything yet. It seems that this is not in the documentation, do I need to create something completely custom? I have tried to add a button inside a navigation view, but it doesn't work - it comes up with