You are on page 1of 4

xmlvm/tutorial/ios/helloworld/portrait

iOS - HelloWorld
Simple HelloWorld for iOS. Application runs in portrait mode and does not respond to orientation changes. Application class needs to be derived from UIApplicationDelegate. Entry point is overridden method applicationDidFinishLaunching() iOS will instantiate class HelloWorld and call this method. UIWindow is the top-level application window. UILabel spans the complete size of the window as a simple means to center the text. Application does not respond to any events; the only way to terminate it by pressing the "Home" button.

"Hello World" should always be seen at the center since you are aligning the text using setTextAlignment(UITextAlignment.Center) The orientation of the application does not change on <apple>+arrow keys

References
Apple's iOS Developer Center Apple's Getting Started Guide Documentation: o UIApplication o UIApplicationDelegate o UIScreen o UIWindow o UILabel

Exercise
Change the message that will be displayed to Hello XMLVM

You might also like