123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- #import "RootViewController.h"
- #include "TotalFunction.h"
- @implementation RootViewController
- #pragma mark -
- #pragma mark View lifecycle
- #pragma mark -
- #pragma mark Table view data source
- - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
- return 1;
- }
- - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- int n = Total("numberOfRows");
- return n;
- }
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- static NSString *CellIdentifier = @"Cell";
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
- if (cell == nil) {
- cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
- }
-
- cell.textLabel.text = [NSString stringWithFormat:@"%d", [indexPath row]];
- return cell;
- }
- #pragma mark -
- #pragma mark Table view delegate
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
-
- }
- #pragma mark -
- #pragma mark Memory management
- - (void)didReceiveMemoryWarning {
-
- [super didReceiveMemoryWarning];
-
- }
- - (void)viewDidUnload {
-
-
- }
- - (void)dealloc {
- [super dealloc];
- }
- @end
|