[iPhone] Why so many calls?
[iPhone] Why so many calls?
- Subject: [iPhone] Why so many calls?
- From: Phil Curry <email@hidden>
- Date: Mon, 26 Oct 2009 09:34:06 -0700
I did this just for grins to see what I came up with. Boy was I
surprised!
Here's a listing of the calls made loading a table with 2 sections
where the first section has 1 row and the second has 2 rows. Each
section has a header title and a footer title.
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: initWithStyle:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: viewDidLoad
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: viewWillAppear:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: numberOfSectionsInTableView:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: viewDidAppear:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: numberOfSectionsInTableView:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForHeaderInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForHeaderInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForFooterInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForFooterInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:numberOfRowsInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForHeaderInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForHeaderInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForFooterInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForFooterInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:numberOfRowsInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForHeaderInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:cellForRowAtIndexPath:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:cellForRowAtIndexPath:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:cellForRowAtIndexPath:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForHeaderInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForFooterInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForHeaderInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForFooterInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForHeaderInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForFooterInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForHeaderInSection:
NavBasedTestBed37232:20b >> Object: <RootViewController: 0x3d1d3a0>
Received: tableView:titleForFooterInSection:
To summarize, there are:
9 tableView:titleForHeaderInSection:
8 tableView:titleForFooterInSection:
2 numberOfSectionsInTableView:
2 tableView:numberOfRowsInSection: -// I hope we all agree
3 tableView:cellForRowAtIndexPath: --// these make sense
But can anyone explain all the other duplicate calls?
Waiting with baited breath.
-Phil
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden