What is the best way to organize multiple subheadings?

As someone who is fairly new to iPhone design, I tried to find good design patterns for managing multiple subviews, especially where subqueries need the same type of delegate methods to define.

For example, I have a view where I need to exchange between 2 UITableViews based on user actions. Both UITableViews must have a UITableViewControllerDelegate object defined to populate rows, etc.

Do you have more experienced iPhone developers discover that overloading the main view controller as a delegate for both subzones is the right way to do something? Currently, I have 2 objects that determine that each of them acts as a delegate for each UITableView, in order to try to maintain a more organized work. It does what I need, but is it a good example?

I would suggest that there are several best practices to avoid various errors with memory management and such fun things. Thanks in advance!

+5
source share
3 answers

, . , , , UITableViews ...

. , , , , .

, , - "self.navigationController", ( ), .

+5

: , , if, - . : , , , , , .

, , , Apple . " ", . , , , -viewWillAppear: - - , , , .

+2

. UITableView. , (.. UITableViews). ifs , , .

UITableViews UINavigationController . iphone . ( .nib InterfaceBuilder), UINavigationController UITabBar.

+1

All Articles