As a newbie, I regularly get confused about where to put code and when to tweak the inspector in interface builder. From the advice of a macrumours member, I've recently switched off storyboard and I've been learning coding with xib files, from a book called 'Beginning IOS 5 Development' by David, Mark and Jack.
However, it's a lot of extra work using xib files and the storyboard helps you see all your views in a convenient way. Has any experienced developers welcome the addition of storyboard?
I want to toggle the status bar hidden property to YES when I segue into a view on my storyboard. In the inspector there is an option to switch the status bar property to 'none', but this alone doesn't hide the status bar at runtime. Adding a line of code into viewdidload to hide the status bar does the job,
but a small gap remains where the status bar once was, at runtime. I've adjusted the struts and springs of my views and subviews, with no luck.. I'm sure I'll figure it out eventually, but it's confusing jumping between the storyboard and code for issues like this.
However, it's a lot of extra work using xib files and the storyboard helps you see all your views in a convenient way. Has any experienced developers welcome the addition of storyboard?
I want to toggle the status bar hidden property to YES when I segue into a view on my storyboard. In the inspector there is an option to switch the status bar property to 'none', but this alone doesn't hide the status bar at runtime. Adding a line of code into viewdidload to hide the status bar does the job,
Code:
[[UIApplication sharedapplication] setstatusbarhidden = YES];
but a small gap remains where the status bar once was, at runtime. I've adjusted the struts and springs of my views and subviews, with no luck.. I'm sure I'll figure it out eventually, but it's confusing jumping between the storyboard and code for issues like this.