equal
deleted
inserted
replaced
212 return aTableView.rowHeight; |
212 return aTableView.rowHeight; |
213 else |
213 else |
214 return 120; |
214 return 120; |
215 } |
215 } |
216 |
216 |
|
217 -(NSString *)tableView:(UITableView *)aTableView titleForHeaderInSection:(NSInteger)section { |
|
218 NSString *sectionTitle = nil; |
|
219 switch (section) { |
|
220 case 0: |
|
221 sectionTitle = NSLocalizedString(@"Weaponset Name", @""); |
|
222 break; |
|
223 case 1: |
|
224 sectionTitle = NSLocalizedString(@"Weapon Ammuntions", @""); |
|
225 break; |
|
226 default: |
|
227 DLog(@"nope"); |
|
228 break; |
|
229 } |
|
230 return sectionTitle; |
|
231 } |
|
232 |
217 #pragma mark - |
233 #pragma mark - |
218 #pragma mark Table view delegate |
234 #pragma mark Table view delegate |
219 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
235 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
220 if (0 == [indexPath section]) { |
236 if (0 == [indexPath section]) { |
221 EditableCellView *editableCell = (EditableCellView *)[aTableView cellForRowAtIndexPath:indexPath]; |
237 EditableCellView *editableCell = (EditableCellView *)[aTableView cellForRowAtIndexPath:indexPath]; |