How to change a page? Insert URL's? With the UIButtonbar... iMovies
First note of all = Making the app with JIGGY APP
Hi guys, thankyou for telling me about the uibuttonbar etc... I
already have a large code but every time I click on one of the other 7
Submenu buttons down the app, it doesnt change the page what I want to
do. I think I am doing something wrong, typing the text etc at wrong
place.
In your answer (i am sounding arrogant sorry) I would like to see
where to type the text like hello.text etc... and how to insert
hyperlinks? Feel free to use my code, I think it's too advanced for
naabs like me atm... I just started , please show it where to enter
the stuff in my code.
Plugins.load( "UIKit" ); // User Interface Kit, creates the interface.
var window = new
UIWindow( UIHardware.fullScreenApplicationContentRect ); // Content
will appear in rectangle window.
window.setHidden( false );
window.orderFront();
window.makeKey();
window.backgroundColor = [ 1 , 1 , 1 , 1 ]; // White background on
application.
var mainView = new UIView(); // Sets everything on a main view.
window.setContentView( mainView ); // Same as above. Content directed
to main view.
var bar = new UINavigationBar( [0 , 0 , 320 , 48] );
bar.setBarStyle(3); //Style of bar can be changed, look, appearance
etc
bar.showButtonsWithLeftTitle( null , "About");
var title = new UINavigationItem( "iMovies" );
bar.pushNavigationItem( title );
bar.onButtonClicked = function( bar , button )
{
if ( button == 0 )
{
var sheet = new UIAlertSheet( [0 , 0, 200, 60] , 0 );
sheet.setAlertSheetStyle(0);
sheet.setTitle( "About" );
sheet.setBodyText( "Created by Mithu.\n\nYou can watch movies for free
on iMovies using Wi-Fi or 3G. If you have any comments or thanking
please mail: the_darkside_gang...@hotmail.com\nWe are totally against
piracy if you are against iMovies please mail us." );
sheet.popupAlertAnimated( true );
mainView.addSubview( sheet );
// The button bar is created a bit differently - you pass in its
// superview, its frame and the button definition.
// You do not need to do mainView.addSubview( bb )
var bb = new UIButtonBar( mainView , [ -10 , 420 , 330 , 40 ] ,
buttons );
// Style 1 is the cool black one used in the iPod app. 0 is blue -
like a
// navigation bar and 2 is gray.
bb.barStyle = 1;
// Now, you register a group of buttons - you give it a group number
// and an array of button tags. This lets you show entire groups
easily