Nib files, UIViewControllers
I posted this in the normal sdk dev forum but now I realised it wast he wrong one since I use OS 3.0, and its really far down the list now anyway. I have a couple questions:
Should I have all my views and everything in 1 nib file? or each in a seperate nib file?(I know how to connect them). Or have multiple nib files with a few in each? What do you do?
And, when should UIViewController be used instead of UIView?
Thanks.
Also, what is a better option:
1.To methods that do very similar things called by two seperate buttons.
2. One method for both, and then have an IBOutlet for the buttons then inside the method
do an if statement for if sender == btn1, do somthing, if btn2, do the other thing (just one small thing that is different and in the if statement, rest of method is the same)
sorry if that isn't clear.
Last edited by mk12; 07-15-2009 at 06:17 PM.
|