This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); | |
var html = '<html><body>' | |
+ '<a href="http://pedro.com">Pedro</a> ' | |
+ '<a href="http://is.com">is</a> ' | |
+ '<a href="http://a.com">a</a> ' | |
+ '<a href="http://balla.com">balla!</a>.' | |
+ '</body></html>'; | |
var web = Ti.UI.createWebView({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kosso imageAsCropped | |
// added to TiBlob.m | |
// requires 4 arguments : x, y, width, height | |
- (id)imageAsCropped:(id)args | |
{ | |
[self ensureImageLoaded]; | |
if (image!=nil) | |
{ | |
ENSURE_ARG_COUNT(args,4); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<modules/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<modules> | |
<module version="1.0">ti.admob</module> | |
</modules> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Titanium.Admob = require('ti.admob'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var adview = Titanium.Admob.createView({ | |
top:0, | |
testing:true, | |
adBackgroundColor:'black', | |
primaryTextColor:'blue', | |
secondaryTextColor:'green', | |
publisherId:'<< your ID>>' // Replace this string with your own API key! | |
}); | |
win.add(adview); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(NSArray*)moveTo:(id)args | |
{ | |
NSDictionary *props = [args count] > 0 ? [args objectAtIndex:0] : nil; | |
float posX = [TiUtils floatValue:@"posX" properties:props def:1.0f]; | |
float posY = [TiUtils floatValue:@"posY" properties:props def:1.0f]; | |
b2Vec2 moveToPosition = b2Vec2(posX, posY); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function crashIt () { | |
for (var i=0; i<1000; i++) { | |
setTimeout(function() { | |
var foo = test.getElementsByTagName ("lat").item (0).text; | |
result.push (i + " - " + foo); | |
}, 1) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] One moment, building ... | |
[DEBUG] Detecting modules in /Users/mapperson/Titanium/Studio Workspace/Sales Demo/modules | |
[DEBUG] Detecting modules in /Users/mapperson/Library/Application Support/Titanium/modules | |
[DEBUG] Detected module for iphone: com.multitouch 0.1 @ /Users/mapperson/Library/Application Support/Titanium/modules/iphone/com.multitouch/0.1 | |
[DEBUG] Detected module for iphone: com.tiopengles 0.1 @ /Users/mapperson/Library/Application Support/Titanium/modules/iphone/com.tiopengles/0.1 | |
[DEBUG] Detected module for iphone: ti.admob 1.0 @ /Users/mapperson/Library/Application Support/Titanium/modules/iphone/ti.admob/1.0 | |
[DEBUG] Detected module for iphone: ti.box2d 0.1 @ /Users/mapperson/Library/Application Support/Titanium/modules/iphone/ti.box2d/0.1 | |
[DEBUG] Detected module for iphone: ti.paint 1.0 @ /Users/mapperson/Library/Application Support/Titanium/modules/iphone/ti.paint/1.0 | |
[DEBUG] Detected module for iphone: ti.storekit 1.0 @ /Users/mapperson/Library/Application Support/Titanium/modules/iphon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Ti.UI.createWindow(); | |
Titanium.Facebook.appid = "181219095251677"; | |
Titanium.Facebook.permissions = ['publish_stream', 'read_stream', 'offline_access']; | |
var alertDialog = Titanium.UI.createAlertDialog({ | |
title : 'Facebook', | |
message : 'You need to login with Facebook', | |
buttonNames : ['Login Facebook'] | |
}); |
OlderNewer