[UIScreen mainScreen].bounds.size.height
reports the following sizes, in points, for these iOS devices:
- Height: 1024
- Width: 768
- Height: 736
exports.definition = { | |
config : { | |
adapter : { | |
type : "restapi", | |
collection_name : "" | |
} | |
}, | |
extendModel : function(Model) { | |
_.extend(Model.prototype, { |
$.recordCount.value = 99 |
## | |
## Build an Appcelerator Android Module | |
## Then copy it to the default module directory | |
## | |
## (c) Napp ApS | |
## Mads Møller | |
## | |
## HOW TO GUIDE |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
installr_settings: { | |
releaseNotes: grunt.file.read("./CHANGELOG.txt") | |
}, | |
titanium: { | |
build_ios: { // build for ios first |
$.index.addEventListener('visible',function(e){ | |
if (e.view == 'detail'){ | |
e.button.title = "Master"; | |
$.index.detailView.getWindow().leftNavButton = e.button; | |
} else if (e.view == 'master'){ | |
$.index.detailView.getWindow().leftNavButton = null; | |
} | |
}); | |
$.index.open(); |
<? | |
$scheme = isset($_GET['scheme']) ? $_GET['scheme'] : 'twitter'; | |
$path = isset($_GET['path']) ? $_GET['path'] : '/'; | |
$id = isset($_GET['id']) ? $_GET['id'] : 333903271; | |
$package = isset($_GET['scheme']) ? $_GET['scheme'] : 'com.twitter.android'; | |
$auto = isset($_GET['auto']); | |
// Detection | |
$HTTP_USER_AGENT = strtolower($_SERVER['HTTP_USER_AGENT']); |
<key>NSLocationAlwaysUsageDescription</key> | |
<string> | |
YOUR DESCRIPTOIN GOES HERE - EX. This application would like to use your current location. | |
</string> |
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.
sys = require "sys"; | |
http = require "http"; | |
url = require "url"; | |
connect = require "connect"; | |
redis = require "redis"; | |
hashRing = require "hash_ring"; | |
Sharding = { | |
servers = { "127.0.0.1 10000 6378": 1 }; | |
ring = new hashRing.HashRing servers; |