O'Reilly logo

Unity iOS Essentials by Robert Wiebe

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

Dialog location, animation, and speed

Now that we have a framework for the separation of GUI dialog content from GUI dialog control, we need to look at the things we want to accomplish with our GUI dialog wrapper.

The following are the things that we want to create:

  • Dialogs that can be located on the screen in a resolution-independent manner
  • Dialogs that can slide onto the screen and off the screen
  • Dialogs that can fade in and out
  • Dialogs that move at different speeds

Dialog location

Before we can talk about where to put our dialog on the screen, we need to know how big the dialog is going to be. It simply would not make sense to put a dialog that is three fourth the width of the screen, and position it in a way that leaves part of the dialog content ...

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