Hi, I've been learning objective-C via a book and tutorials and while I've learned a lot and can do much of what I want, I still struggle to get the basic structure of my programs correct. Here's a specific thing I want to do, but I end up getting lost and confused.
I want to generate a card object that (I think) should be a subclass of UIView. I want to be able to make a new card, set it's frame size and put some subviews in it. I also want to be able to make it change size and move.
I can make a UIView do some of these things and animate the with a block, but I get confused about where to put the pieces of code. I start with a view based template and make a new subclass of UIView. I'd like to have the view controller ask for cards and be able to take user input to manipulate the card. I can make buttons and connect them to IBActions fine, but should I put the change size and move methods in the card object or in the view controller? I want to be able to say something like: declare a new card - tell the card to "move here" when the button's pressed, etc.
I know this may sound like a really generic question, and I'm not looking for someone to write my code for me, but I'd just like some general (or specific!) advice.