185 cell.imageView.image = nil; |
185 cell.imageView.image = nil; |
186 |
186 |
187 return cell; |
187 return cell; |
188 } |
188 } |
189 |
189 |
190 /* |
|
191 -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { |
|
192 UIView *containerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 300, 50)] autorelease]; |
|
193 UILabel *headerLabel = [[[UILabel alloc] initWithFrame:CGRectMake(10, 20, 300, 40)] autorelease]; |
|
194 headerLabel.textColor = [UIColor lightGrayColor]; |
|
195 headerLabel.shadowColor = [UIColor blackColor]; |
|
196 headerLabel.shadowOffset = CGSizeMake(0, 1); |
|
197 headerLabel.font = [UIFont boldSystemFontOfSize:20]; |
|
198 headerLabel.backgroundColor = [UIColor clearColor]; |
|
199 |
|
200 switch (section) { |
|
201 case kNetworkFields: |
|
202 headerLabel.text = NSLocalizedString(@"Network Configuration", @""); |
|
203 break; |
|
204 case kAudioFields: |
|
205 headerLabel.text = NSLocalizedString(@"Audio Preferences", @""); |
|
206 break; |
|
207 case kOtherFields: |
|
208 headerLabel.text = NSLocalizedString(@"Other Settings", @""); |
|
209 break; |
|
210 default: |
|
211 NSLog(@"Warning: unset case value in titleForHeaderInSection!"); |
|
212 headerLabel.text = @"!"; |
|
213 break; |
|
214 } |
|
215 |
|
216 [containerView addSubview:headerLabel]; |
|
217 return containerView; |
|
218 } |
|
219 |
|
220 -(CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { |
|
221 if (kAudioFields == [indexPath section] && 2 == [indexPath row]) |
|
222 return volumeCell.frame.size.height; |
|
223 else |
|
224 return table.rowHeight; |
|
225 } |
|
226 |
|
227 -(CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { |
|
228 return 57.0; |
|
229 } |
|
230 */ |
|
231 |
|
232 #pragma mark - |
190 #pragma mark - |
233 #pragma mark Table view delegate |
191 #pragma mark Table view delegate |
234 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
192 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
235 if (0 == [indexPath section]) { |
193 if (0 == [indexPath section]) { |
236 EditableCellView *cell = (EditableCellView *)[aTableView cellForRowAtIndexPath:indexPath]; |
194 EditableCellView *cell = (EditableCellView *)[aTableView cellForRowAtIndexPath:indexPath]; |