Before you begin, you must install Jiggy in your Iphone. And before you can install Jiggy, your Iphone must be jailbroken. Supposed you have already jailbroken your phone means there is already and AppInstaller installed. Add the Jiggy repository to Installer. Just launch Installer, click on the “Sources” button, click on “Edit” at the top right and then “Add”. Enter the following URL: http://jiggyapp.com/i
Then, hit “OK”. Once the sources are refreshed you will see two new packages under the “Development” category. First, install the one called Jiggy Runtime and then install Jiggy
Aside from being "web-based", meaning you will be able to use your browser's extensiveness in creating programs using Jiggy, it also uses Javascript as its main programming language, which means users can now easily make their own masterpieces of code.
Plugins.load( "UIKit" );
var window = new UIWindow( UIHardware.fullScreenApplicationContentRect );
window.setHidden( false );window.orderFront();
window.makeKey();
window.backgroundColor = [ 0.8 , 0 , 0, 1 ];
var mainView = new UIScroller();
mainView.contentSize = [ window.bounds[ 2 ] * 2 , window.bounds[ 3 ] * 2 ];
mainView.backgroundColor = [ 0 , 0 , 0 , 0 ];
window.setContentView( mainView );
var hello = new UITextLabel( [ 20 , 20 , window.bounds[ 2 ] - 40 , 100 ] );
hello.text = "Hello World!";
hello.backgroundColor = [ 0 , 0 , 0 , 0.25 ];
hello.setFont( new Font( "Trebuchet MS" , 2 , 46 ) );
hello.color = [ 1 , 1 , 1 , 1 ];
hello.centersHorizontally = true;
mainView.addSubview( hello );
No comments:
Post a Comment