Archive for September, 2010

September 26, 2010 0

Post-A-Day #6 – UIViewController subview is 20 pixels too high!!!

By admin in Uncategorized

This is a small tip which I’ve encountered twice so far on my current project, and a few times before. The times were far apart enough, that by the time I encountered it again I forgot what the solution was. Just that it was fixible….er somehow. Problem: -You created a new class of UIViewController type, [...]

Tags:

September 21, 2010 17

Post-A-Day #5, UIKit + Cocos2d – View Based Cocos2D Application

By admin in Uncategorized

Introdction Cocos2D is awesome, and it even comes with some amazing templates to create 3 different kinds of projects. Vanilla version, one that combines Box2d(physics engine), and one that combines it with Chipmunk (physics engine). I see a lot of games that use Cocos2D exclusively from beginning to end, and by default that’s more or [...]

Tags:

September 20, 2010 0

Post-A-Day #4 – Objective-C Flocking-Behaviors/Boid Class

By admin in Uncategorized

http://onedayitwillmake.com/blog/2010/09/post-a-day-4-objective-c-flocking-behaviorsboid-class/

Tags:

September 19, 2010 0

Post-A-Day #3 – Flipping Views

By admin in Uncategorized

In my current project, I needed to pretend my object had a front view and a back view. Like a baseball card for example. Design often mirrors real life, so it’s a common graphic design idea. Post-A-Day are pretty tough so i have less time to write my thoughts more eloquently, however… – Iphone animation [...]

Tags:

September 17, 2010 1

Post-A-Day #2-Nib Aware View

By admin in Uncategorized

Apple recommends that if you have one screen, you have one instance of UIViewController, in there documentation “View Controller Programming”. If you want to divide a single screen into multiple areas and manage each one separately, use generic controller objects (custom objects descending from NSObject) instead of view controller objects to manage each subsection of [...]

Tags: , , ,

September 11, 2010 0

Post-A-Day #1 – Custom UINavigationbar background

By admin in Uncategorized

The idea of the iphone is that it has a nice universal feel across applications, that’s a benefit to everyone involved. For example, if Apple later decided they’re tired of blue gradients – and your app uses doesn’t try to circumvent the built in look and feel – your app is 100% future proof. It [...]

Tags: , , ,

September 11, 2010 0

Post-A-Day

By admin in Uncategorized

Hey Everyone Sometimes I see this on other blogs, and I like following along as the person progresses and I find that the short deadline makes it easier share quick thoughts or snippets. For the next 20 days, I plan on writing 1 blog post per day on this blog, or my other blog (http://onedayitwillmake.com/blog).

Tags: ,

September 4, 2010 0

What is a struct?

By admin in Uncategorized

So as i’ve learned more about programming in Objective-C, things that scared me at first are less scary now. One thing I wondered and stayed away from at first were ‘Structs’ – because they sounded alien to me, I just didn’t get them. In Objective-C, everything inherits from NSObject. That’s a really great thing, you [...]

Tags:

September 3, 2010 0

Consicely animate an object along a path sensitive to time.

By admin in Uncategorized

For a project that I am currently working on I needed to animate an object along a path. The path is recorded as the user moves their finger over the phone over time. If they move slowly from A to B, then when I recreate their movement I have to move slowly. The other added [...]

Tags: , ,