First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
/** | |
* Ti.DynamicLib | |
* @abstract Support embedded binaries (aka dynamic libraries) in Titanium modules and Hyperloop. | |
* @version 1.1.0 | |
* | |
* Install: | |
* 1) Search and replace '../../src/<YourFramework>.framework' with your framework location. | |
The path is relative to the `build/iphone` directory. | |
* 2a) For classic modules: | |
* - Add 'LD_RUNPATH_SEARCH_PATHS=$(inherited) "@executable_path/Frameworks" $(FRAMEWORK_SEARCH_PATHS)' |
<!-- note the ONLY change to this is the additional module="tabIndicator" | |
attribute + properties to override indicator defaults //--> | |
<Alloy> | |
<TabGroup module="tabIndicator" tabsBackgroundColor="#000" tabIndicatorHeight="1" tabIndicatorColor="white" tabIndicatorWidth="75%"> | |
<Tab title="Tab 1" icon="/images/icons/519-tools-1.png" activeIcon="/images/icons/519-tools-1_active.png" color="#555" activeColor="#fff"> | |
<Window title="Tab 1" barColor="black" navTextColor = "#fff"> | |
<Label onClick="openWin1">Tab 1</Label> | |
</Window> | |
</Tab> | |
<Tab title="Tab 2" icon="/images/icons/516-archive-box.png" activeIcon="/images/icons/516-archive-box_active.png" color="#555" activeColor="#fff"> |
var AVAudioEngine = require('AVFoundation/AVAudioEngine'); | |
var AVAudioPlayerNode = require('AVFoundation/AVAudioPlayerNode'); | |
var AVAudioFile = require('AVFoundation/AVAudioFile'); | |
var NSBundle = require('Foundation/NSBundle'); | |
var win = Ti.UI.createWindow({ | |
backgroundColor: '#fff' | |
}); | |
var btn = Ti.UI.createButton({ |
This is a quick example of how to create a fading actionbar effect like this in Appcelerator Titanium
This is actually very simple. The trick is putting the Actionbar in overlay mode by configuring the theme with windowActionBarOverlay:true
. Then all you need to do is updating the color of the Actionbar, in this case by scrolling a ScrollView.
exports.C = { | |
INSTAGRAM_CLIENT_ID : 'replace this with your public', //replace this with your public | |
INSTAGRAM_CLIENT_SECRET : 'replace this with your private key', //replace this with your private key | |
INSTAGRAM_CALLBACK_URL : 'replace this with your INSTAGRAM_CALLBACK_URL' | |
}; |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
const SFAuthenticationSession = require('SafariServices/SFAuthenticationSession'); | |
const NSURL = require('Foundation/NSURL'); | |
const session = SFAuthenticationSession.alloc().initWithURLCallbackURLSchemeCompletionHandler( | |
NSURL.alloc().initWithString('https://github.com/login/oauth/authorize?scope=repo&client_id=XXXXX'), | |
'appcgithub://', | |
function(url, error) { | |
if (error != null) { | |
Ti.API.error('Error performing OAuth: ' + error.localizedDescription); | |
cb({ success: false, error: 'Error performing OAuth: ' + error.localizedDescription }); |
var FBSDKShareLinkContent = require("FBSDKShareKit/FBSDKShareLinkContent"), | |
FBSDKShareDialog = require("FBSDKShareKit/FBSDKShareDialog"), | |
NSURL = require("Foundation/NSURL"); | |
var win = Ti.UI.createWindow({ | |
backgroundColor: "#fff" | |
}); | |
var btn = Ti.UI.createButton({ | |
title: "Trigger Share Dialog" |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
settings: { | |
releaseNotes: grunt.option('notes') || 'CI build', | |
appName: 'Flashlight', | |
ppUuid: '0253600x-ac6d-35b6-b66d-dd25c4fd956f', | |
installrAppToken: '6xC0I8SdJA76kW3pqq7GFZLIyq6fBP4Z' | |
}, |