Need a little assistance

Discussion in 'Jiggy Runtime Development' started by brodysseus, Jun 29, 2008.

  1. brodysseus

    brodysseus New Member

    Joined:
    Jun 27, 2008
    Messages:
    14
    Likes Received:
    0
    Im getting started making my new app... i got a basic gui down but where do i find out how to add pref tables and make buttons do what they do?

    1.1.4 firmware if it helps...

    Here is my app so far


    // com.brodysseus.ihunt
    // /Applications/iHunt.app/main.js
    Plugins.load( "UIKit" );

    var window = new UIWindow( UIHardware.fullScreenApplicationContentRect );
    window.setHidden( false );
    window.orderFront();
    window.makeKey();
    window.backgroundColor = [ 0 , 0 , 255 , 1 ];

    var mainView = new UIView();
    window.setContentView( mainView );

    var bar = new UINavigationBar( [ 0 , 0 , 320 , 48 ] );
    bar.showButtonsWithLeftTitle( "Run" , "Info" , false );

    mainView.addSubview( bar );

    var itemOne = new UINavigationItem( "Brodysseus" );
    bar.pushNavigationItem( itemOne );


    I know its basic but im just starting out

    And i am not a noob. I just need a little assistance
  2. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    if(button == 1 )
    {
    do stuff
    }
    if(button == 2 )
    {
    do other stuff
    }
  3. brodysseus

    brodysseus New Member

    Joined:
    Jun 27, 2008
    Messages:
    14
    Likes Received:
    0
    Could you give an example of code as to what this would do?

    Where can i find all the variables?
  4. Ryan

    Ryan Well-Known Member

    Joined:
    Jan 19, 2008
    Messages:
    4,129
    Likes Received:
    28
    Device:
    Nexus 4
    what exactly do u want to do?
  5. brodysseus

    brodysseus New Member

    Joined:
    Jun 27, 2008
    Messages:
    14
    Likes Received:
    0
    I dont know lol

    I need to know all the things i can do... the variables... where do i find them?
  6. PAEz

    PAEz New Member

    Joined:
    Jan 29, 2008
    Messages:
    201
    Likes Received:
    10
  7. blackjak231

    blackjak231 Member

    Joined:
    Oct 1, 2007
    Messages:
    759
    Likes Received:
    6
    Device:
    iPhone 4 (White)

Share This Page