O'Reilly logo

LiveCode Mobile Development Beginner's Guide by Colin Holgate

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – showing a date picker

Many applications will require the user to choose a date for an event, and with mobile devices there is a particular look to the "date picker" that you are shown. LiveCode lets us display such a control.

  1. Copy the Test button from the Browser card, and paste it onto the DatePicker card.
  2. Change the script to the following:
    on mouseUp
       iphonePickDate "date"
    end mouseUp
  3. Select the Run tool and try the Test button. You'll see an error, because this is a mobile-only feature.
  4. For a change, select iPhone or iPad Simulator from the Development/Test Target menu, and then choose Test from the Development menu.
  5. You will see your stack open in the iOS simulator, and you can try the DatePicker and Test buttons, to see the iOS ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required