September 2013
Intermediate to advanced
112 pages
2h 42m
English
Let’s get to some code. Create a new app called Boxey (remember how? motion create Boxey). Now we need to add a window to our app.
Adding a UIWindow should be one of the first things your app does, so we need to add it in AppDelegate’s application:didFinishLaunchingWithOptions:, like this:
| | class AppDelegate |
| | def application(application, didFinishLaunchingWithOptions:launchOptions) |
| | @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) |
| | @window.backgroundColor = UIColor.whiteColor |
| | @window.makeKeyAndVisible |
There are a couple of new classes in there, so let’s walk through it. We created our UIWindow using initWithFrame:. We use this method to create all ...
Read now
Unlock full access