Oreilly Learning iPhone Programming

Currently on Ch5 but have a few questions looming in the back of my mind: 1) Why use a tableviewcell to enter data for AddNewCity instead of a UIView with label and description? 2) Just as i thought, tag 777 got me in trouble.  My bad because i added the tag to both the inner component uitextField and the outer component tableViewCell by mistake.  But im wondering  a couple of things: (a) can i tag the entire structure uitableViewCell as i did (without tagging the inner components) and get any component inside it with that tag refrence? (b) why exactly was it not passing the data correctly; because the outer… Read More

Continue Reading

Delegates & Protocols iOS

A complex subject to wrap your head around, i agree!  But its pretty cool once you get a working example going. Let’s think of a game where a lander comes down from the sky (presumably on Mars – since Mars is a hot topic lately) and deploys a  rover.  In Cocos2d, you put all your objects on a Layer object.  This means the layer class is the main class (analogous to a viewcontroller class contains buttons, views, labels, cells etc). You create a Lander object class because you want to re-use it everywhere in the game.  With every new level, you must create a new layer class but you can… Read More

Continue Reading