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:
|||def application(application, didFinishLaunchingWithOptions:launchOptions)|
|||@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)|
|||@window.backgroundColor = UIColor.whiteColor|
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 ...