Tuesday, January 20, 2009

Creating native Iphone apps with Jiggy

Jiggy is a mini IDE (Integrated Development Environment) which is used to create native Iphone apps. When we say IDE, it means an editor, a compiler, building tools and a debugger. This means you will be able to build native Iphone applications with the help of this software.

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

Jiggy Iphone preview

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.

Jiggy screenshot

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