small medium large xlarge

Back to: All Forums  RubyMotion
02 Jan 2013, 20:34
Matt Dickenson (1 post)

I’m on section 3.3, adding the UITabBarController. When I run @rake@, the app pops up in the simulator as shown in the picture on page 36. However, taking any action–including tapping “Top Color” changes the title of the @top_controller@ from “Top Color” to “Detail”.

Am I making a mistake, or is there something about iOS that changes titles back to their defaults (that needs to be overridden)?

Maybe this is addressed later in the book but I didn’t see it when quickly glancing through the remainder of the chapter.

Watermark copy 2_test_pragsmall
14 Jan 2013, 22:54
Clay Allsopp (8 posts)

Hey Matt,

I just got notified of this, sorry for the delay. Can you compare your source to the code in ?

Specifically the ./code/ColorViewer_tab project, I can’t reproduce exactly the behavior you’re experiencing :(

15 Jan 2013, 12:51
Stuart Chinery (3 posts)

I had this same problem and after checking the source code (code/controllers/ColorViewer_tab) it appears that the line @self.title = “Detail”@ is in the wrong method in the book.

Page 33 in the book says to put this line in the ColorDetailController’s @viewDidLoad@ method where as the source code has it in the @initWithColor@ method.

I switched mine and it worked as expected.

15 Oct 2015, 18:49
Adam Stockland (1 post)

When running rake on the completed Boxey app, I get the error “Application windows are expected to have a root view controller at the end of application launch”.

I tried a couple things to set a rootViewController in app_delegate, but can’t get the app to load in the simulator. Curious how to satisfy rootViewController in app_delegate.

You must be logged in to comment