I’m not sure if this problem is specific to Xcode 6, but I didn’t see this issue addressed in any of the other topics for this chapter so I’m assuming it is.
After disabling Auto Layout, My view was being drawn with the green color as it was supposed to, however the bezier path would not draw. After exploring what might be causing this, I figured out the initWithFrame: method was never actually being called.
The solution I found to this was
- Select MainMenu.xib
- Select the File Inspector
- Under “Runtime Behavior” -> “Instantiation”, uncheck Prefer coder
I’m not entirely sure why this fixed the problem, but if you’re having the same issue give it a try. If anyone does know why this fixes the problem and would like to share that would be great