Not your typical problem relating to this error message. I understand usually that means that the RootViewController on the window isn't set but in my case that isn't the problem.
I made a StackOverflow post on this which can be seen here: http://stackoverflow.com/questions/17788686/strange-behaviour-when-initialising-uisegmentedcontrol
I was hoping to be able to receive some other answers here. It seems to be related to classes which inherit from UIViewController or UIView.
Since that post I made I've done some more digging around and interestingly if I create a UIView inline i.e
var view = new UIView()
I don't seem to get a problem. It's only when I create a class in a separate file that inherits from UIView. I suppose I should mention that I have a lot of classes in this project.
I'd appreciate any help with this problem as I'm running out of ideas on how to fix it