PDA

View Full Version : Does anyone like storyboard?




nashyo
Feb 22, 2012, 03:46 AM
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,

[[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.



jnoxx
Feb 22, 2012, 05:32 AM
I'm completely not interested in StoryBoards, I know how to build my interfaces the way I'm used to, and been doing for over a year or 2.
It's easy for me to set it up, and don't want to switch over, so far, that's my only advice, alot of people will tell you why it's better, and I think it's good to learn it anyways :)

dejo
Feb 22, 2012, 08:41 AM
I investigated using Storyboards to help with the rewrite of a.k.a. that I am working on. For me, I found them lacking when it comes to making a universal app that doesn't repeat itself in regards to views (and we know DRY is a good thing to strive for). But I think if one was to write a simpler app, restricted to one platform, Storyboards would be a nice thing to use.

ArtOfWarfare
Feb 22, 2012, 09:45 AM
I like storyboards.

Then again, I've never written any of my apps to have a unique interface for the iPad.

ThinkDifferentX
Feb 22, 2012, 12:47 PM
I'm currently working on updating an app to universal that was previously iPad only. I'm using storyboards just fine. I don't understand how it doesn't work well for universal apps. I have an iPhone storyboard and an iPad storyboard, all from checking universal app when I created the project.

The only snafu is it's tricky to edit the content view of a UISCrollView, since it is a subview now as opposed to a property.

I was able to make it easier by changing the struts and springs for the scroll view so I could pan the content view around.

I ultimately decided to make it a separate view in it;s own nib and ill put it in the scroll view at runtime.

It's good to know how to do UI in code also, since it makes customizing things easier.

dejo
Feb 22, 2012, 12:52 PM
I don't understand how it doesn't work well for universal apps.

I have an "about" view that appears as a modal on the iPhone and as a popover on the iPad. I found I wasn't able to define the viewController, UI, etc. in one storyboard and share it with the other.

seepel
Feb 22, 2012, 10:08 PM
I played around with Storyboards a bit and I was digging them. One of the coolest features I think is the static table view. That being said I'm not sure I'm ready to give up on iOS 4 yet so I haven't moved to them.

lmoroney
Mar 3, 2012, 07:26 PM
I played around with Storyboards a bit and I was digging them. One of the coolest features I think is the static table view. That being said I'm not sure I'm ready to give up on iOS 4 yet so I haven't moved to them.

I personally prefer to do everything code-first, and bypass Interface Builder and Storyboards altogether. It's not as difficult as it might sound, and it makes you apps MUCH easier to debug...

Laurence

brontosaurus
Mar 3, 2012, 08:39 PM
Storyboard is like manna from heaven.

HannKett
Mar 4, 2012, 05:31 AM
I also like storyboards, but I never used the nib files as stand alone though so I can't really tell the difference.

But it is a cool idea, the only thing that irritates me is that when you zoom out you can not perform any actions. Remedied that with a brand new 27" imac (will give to the mrs when the new one arrives) :apple:

ChristianJapan
Mar 4, 2012, 05:37 AM
I also preferr code-based UI; not a big fan of IB or storyboard.

TheWatchfulOne
Mar 6, 2012, 05:56 PM
I appreciate the concept and intent of story boards (and IB) but, in practice, I prefer to do everything programmatically. It's easier for me to keep track what is going to happen and in what order it's going to happen.

I do sometimes use Interface Builder as a sort of visual aid type of tool. But then I write down the numbers and implement my UI programmatically.