Roundhouse Studios

  • News
  • Support
  • rss

Tag Archive: Code


Interface Builder is your friend!

Filed Under: Code, Interface Builder
Feb.06, 2010

When I first started researching iPhone application coding and design, I was pretty surprised by the negativity people had towards Interface Builder.  It seemed most of the tutorials and forum posts I found centered around programatically designing and laying out your interface, which struck me as odd considering Apple gives you a tool called Interface Builder!

Admittedly, Interface Builder (IB from here on out) won’t help you a lot if you’re making a purely OpenGL application.  However, if you’re working with Cocoa Touch (like we were with Faced), then I would definitely suggest taking the time to get familiar with IB, because it will save you a lot of time in the long run, and it’s a great place to mock-up the UI of your application.

I think what discourages people from using IB is simply the connection mechanism between IB and your actual code.  Placing buttons, images, lables, etc… on your View is pretty simple, but when it comes to actually hooking these items up to your code, it’s not very obvious at first.  That’s not a problem though, right?  If you’ve already learned the basics of Objective-C and Cocoa Touch, then learning IB is no harder.  If you can layout your interface programmatically, then you can easily figure out IB.

Step 1: Read the guide.  It’s amazing how many developers out there don’t want to read the docs!  One thing that has impressed me is how well Apple documents its tools and API’s.  There is a wealth of knowledge in the Developer Center, so take advantage of it!

Step 2: Practice a little.  Create a test project and start messing around a bit with IB and your code.  Once you get it, it’s like one of those great development “Ah-ha!” moments.  Like the first time that Object Oriented programming actually clicked, or the first time some other programming paradigm just “made sense”, you will have that moment with IB.  Once this happens, and you start using IB more and more, you will realize how much faster your interface development will become.

If you’re a one-developer show, and you’ve only ever laid out your interface through code, you probably won’t start now.  That’s fine.  It’s not wrong, it’s just less flexible.  However, if you’re like us and the person/people who develop the UI/Graphics/Layout are non-programmers, then IB puts a lot of power in their hands, and frees up the code monkey’s like me to do the actual nuts-and-bolts work without having to deal too much with the interface.  I’ll create the basic Class/Nib combo, and let Cam go nuts placing buttons, images, backgrounds… whatever.  When he’s done, I hook all of his work up to the code in the back end with a few right-clicks and drags.  It’s pretty nice once you get into a rhythm like that.

There will probably be another post here that actually goes more into the nuts-and-bolts of IB use, but right now I just wanted to say that IB is a good tool for Cocoa Touch development and certainly worth investigating.

Remember, the tools Apple have provided to you are for your benefit!  Take some time to get familiar with them, and you will not be disappointed.

Tags: Code, InterfaceBuilder
read more

Developer Discussions and More!

Filed Under: News
Feb.03, 2010

When we decided to dive into this crazy App development business about six months ago, we knew that we wanted to document our successes and our failures as well as the problems we faced, and their solutions.

Anybody who has developed an app, is in the middle of developing an app, or is just thinking about developing one will find out that there’s a lot to learn in order to create a decent product and have it accepted for sale in the App Store.  Don’t get me wrong… there are a lot of terrible apps in the app store that clearly lacked thought, direction, inspiration, artistic ability, etc… but, that’s not the point!  The point is to make something you’re proud of and successfully launch it in the app store.

Although Cam and I are both experienced in our fields, there was still a lot to learn.   Beyond simply learning Objective-C and Cocoa Touch, you will also have to figure out XCode, Interface Builder (not a requirement, but it can make your life a lot easier), Provisioning Profiles, and the app submission process.   We also encountered a LOT of headaches around In-App Purchases (which ended up being ripped out anyway, and is an entire post of it’s own), the Facebook Connect API, and a few quirks of iTunes Connect.

To solve a number these problems we relied a lot on the experience of the community.  This blog will be our opportunity to pay the community back and offer our own insight and solutions that we discovered while developing Faced.

So… stay tuned and watch this space.  Perhaps you’ll learn something new, and maybe you’ll be able to help us make Faced (or our next project) even better.

Tags: Code
read more
  • recent entries

    • Apple Approval Process
    • Faced Lite 1.1 is live!
    • Faced 1.1 is out!
    • Interface Builder is your friend!
    • Developer Discussions and More!
    • Faced 1.1 is on it’s way
    • Our first iPhone app is now live!
  • popular tags

    Code Faced InterfaceBuilder
  • login

    • Log in
  • faced community

  • friends

  • pages

    • News
    • Support
  • archives

    • March 2010
    • February 2010
    • January 2010