cocoaTouch/WeaponSettingsViewController.m
changeset 3356 3ae3fccb439e
equal deleted inserted replaced
3355:dc9e61e67484 3356:3ae3fccb439e
       
     1 //
       
     2 //  WeaponSettingsViewController.m
       
     3 //  HedgewarsMobile
       
     4 //
       
     5 //  Created by Vittorio on 19/04/10.
       
     6 //  Copyright 2010 __MyCompanyName__. All rights reserved.
       
     7 //
       
     8 
       
     9 #import "WeaponSettingsViewController.h"
       
    10 
       
    11 
       
    12 @implementation WeaponSettingsViewController
       
    13 
       
    14 
       
    15 #pragma mark -
       
    16 #pragma mark Initialization
       
    17 
       
    18 /*
       
    19 - (id)initWithStyle:(UITableViewStyle)style {
       
    20     // Override initWithStyle: if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
       
    21     if ((self = [super initWithStyle:style])) {
       
    22     }
       
    23     return self;
       
    24 }
       
    25 */
       
    26 
       
    27 
       
    28 #pragma mark -
       
    29 #pragma mark View lifecycle
       
    30 
       
    31 /*
       
    32 - (void)viewDidLoad {
       
    33     [super viewDidLoad];
       
    34 
       
    35     // Uncomment the following line to preserve selection between presentations.
       
    36     self.clearsSelectionOnViewWillAppear = NO;
       
    37  
       
    38     // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
       
    39     // self.navigationItem.rightBarButtonItem = self.editButtonItem;
       
    40 }
       
    41 */
       
    42 
       
    43 /*
       
    44 - (void)viewWillAppear:(BOOL)animated {
       
    45     [super viewWillAppear:animated];
       
    46 }
       
    47 */
       
    48 /*
       
    49 - (void)viewDidAppear:(BOOL)animated {
       
    50     [super viewDidAppear:animated];
       
    51 }
       
    52 */
       
    53 /*
       
    54 - (void)viewWillDisappear:(BOOL)animated {
       
    55     [super viewWillDisappear:animated];
       
    56 }
       
    57 */
       
    58 /*
       
    59 - (void)viewDidDisappear:(BOOL)animated {
       
    60     [super viewDidDisappear:animated];
       
    61 }
       
    62 */
       
    63 
       
    64 
       
    65 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
       
    66     // Override to allow orientations other than the default portrait orientation.
       
    67     return YES;
       
    68 }
       
    69 
       
    70 
       
    71 #pragma mark -
       
    72 #pragma mark Table view data source
       
    73 
       
    74 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
       
    75     // Return the number of sections.
       
    76     return 1;
       
    77 }
       
    78 
       
    79 
       
    80 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
       
    81     // Return the number of rows in the section.
       
    82     return 1;
       
    83 }
       
    84 
       
    85 
       
    86 // Customize the appearance of table view cells.
       
    87 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
       
    88     
       
    89     static NSString *CellIdentifier = @"Cell";
       
    90     
       
    91     UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
       
    92     if (cell == nil) {
       
    93         cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
       
    94     }
       
    95     
       
    96     // Configure the cell...
       
    97     
       
    98     return cell;
       
    99 }
       
   100 
       
   101 
       
   102 /*
       
   103 // Override to support conditional editing of the table view.
       
   104 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
       
   105     // Return NO if you do not want the specified item to be editable.
       
   106     return YES;
       
   107 }
       
   108 */
       
   109 
       
   110 
       
   111 /*
       
   112 // Override to support editing the table view.
       
   113 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
       
   114     
       
   115     if (editingStyle == UITableViewCellEditingStyleDelete) {
       
   116         // Delete the row from the data source
       
   117         [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
       
   118     }   
       
   119     else if (editingStyle == UITableViewCellEditingStyleInsert) {
       
   120         // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
       
   121     }   
       
   122 }
       
   123 */
       
   124 
       
   125 
       
   126 /*
       
   127 // Override to support rearranging the table view.
       
   128 - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
       
   129 }
       
   130 */
       
   131 
       
   132 
       
   133 /*
       
   134 // Override to support conditional rearranging of the table view.
       
   135 - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
       
   136     // Return NO if you do not want the item to be re-orderable.
       
   137     return YES;
       
   138 }
       
   139 */
       
   140 
       
   141 
       
   142 #pragma mark -
       
   143 #pragma mark Table view delegate
       
   144 
       
   145 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
       
   146     // Navigation logic may go here. Create and push another view controller.
       
   147 	/*
       
   148 	 <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
       
   149      // ...
       
   150      // Pass the selected object to the new view controller.
       
   151 	 [self.navigationController pushViewController:detailViewController animated:YES];
       
   152 	 [detailViewController release];
       
   153 	 */
       
   154 }
       
   155 
       
   156 
       
   157 #pragma mark -
       
   158 #pragma mark Memory management
       
   159 
       
   160 - (void)didReceiveMemoryWarning {
       
   161     // Releases the view if it doesn't have a superview.
       
   162     [super didReceiveMemoryWarning];
       
   163     
       
   164     // Relinquish ownership any cached data, images, etc that aren't in use.
       
   165 }
       
   166 
       
   167 - (void)viewDidUnload {
       
   168     // Relinquish ownership of anything that can be recreated in viewDidLoad or on demand.
       
   169     // For example: self.myOutlet = nil;
       
   170 }
       
   171 
       
   172 
       
   173 - (void)dealloc {
       
   174     [super dealloc];
       
   175 }
       
   176 
       
   177 
       
   178 @end
       
   179