project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m
changeset 3546 ccf4854df294
parent 3522 156c04c6a3d8
child 3547 02875b1145b7
equal deleted inserted replaced
3545:b07ee704f35d 3546:ccf4854df294
     1 //
       
     2 //  SingleWeaponViewController.m
       
     3 //  Hedgewars
       
     4 //
       
     5 //  Created by Vittorio on 19/06/10.
       
     6 //  Copyright 2010 __MyCompanyName__. All rights reserved.
       
     7 //
       
     8 
       
     9 #import "SingleWeaponViewController.h"
       
    10 
       
    11 
       
    12 @implementation SingleWeaponViewController
       
    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 // Override to allow orientations other than the default portrait orientation.
       
    65 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
       
    66     // Return YES for supported orientations
       
    67     return (interfaceOrientation == UIInterfaceOrientationPortrait);
       
    68 }
       
    69 */
       
    70 
       
    71 
       
    72 #pragma mark -
       
    73 #pragma mark Table view data source
       
    74 
       
    75 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
       
    76     // Return the number of sections.
       
    77     return 0;
       
    78 }
       
    79 
       
    80 
       
    81 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
       
    82     // Return the number of rows in the section.
       
    83     return 0;
       
    84 }
       
    85 
       
    86 
       
    87 // Customize the appearance of table view cells.
       
    88 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
       
    89     
       
    90     static NSString *CellIdentifier = @"Cell";
       
    91     
       
    92     UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
       
    93     if (cell == nil) {
       
    94         cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
       
    95     }
       
    96     
       
    97     // Configure the cell...
       
    98     
       
    99     return cell;
       
   100 }
       
   101 
       
   102 
       
   103 /*
       
   104 // Override to support conditional editing of the table view.
       
   105 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
       
   106     // Return NO if you do not want the specified item to be editable.
       
   107     return YES;
       
   108 }
       
   109 */
       
   110 
       
   111 
       
   112 /*
       
   113 // Override to support editing the table view.
       
   114 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
       
   115     
       
   116     if (editingStyle == UITableViewCellEditingStyleDelete) {
       
   117         // Delete the row from the data source
       
   118         [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
       
   119     }   
       
   120     else if (editingStyle == UITableViewCellEditingStyleInsert) {
       
   121         // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
       
   122     }   
       
   123 }
       
   124 */
       
   125 
       
   126 
       
   127 /*
       
   128 // Override to support rearranging the table view.
       
   129 - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
       
   130 }
       
   131 */
       
   132 
       
   133 
       
   134 /*
       
   135 // Override to support conditional rearranging of the table view.
       
   136 - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
       
   137     // Return NO if you do not want the item to be re-orderable.
       
   138     return YES;
       
   139 }
       
   140 */
       
   141 
       
   142 
       
   143 #pragma mark -
       
   144 #pragma mark Table view delegate
       
   145 
       
   146 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
       
   147     // Navigation logic may go here. Create and push another view controller.
       
   148 	/*
       
   149 	 <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
       
   150      // ...
       
   151      // Pass the selected object to the new view controller.
       
   152 	 [self.navigationController pushViewController:detailViewController animated:YES];
       
   153 	 [detailViewController release];
       
   154 	 */
       
   155 }
       
   156 
       
   157 
       
   158 #pragma mark -
       
   159 #pragma mark Memory management
       
   160 
       
   161 - (void)didReceiveMemoryWarning {
       
   162     // Releases the view if it doesn't have a superview.
       
   163     [super didReceiveMemoryWarning];
       
   164     
       
   165     // Relinquish ownership any cached data, images, etc that aren't in use.
       
   166 }
       
   167 
       
   168 - (void)viewDidUnload {
       
   169     // Relinquish ownership of anything that can be recreated in viewDidLoad or on demand.
       
   170     // For example: self.myOutlet = nil;
       
   171 }
       
   172 
       
   173 
       
   174 - (void)dealloc {
       
   175     [super dealloc];
       
   176 }
       
   177 
       
   178 
       
   179 @end
       
   180