по какой-то причине этот UITableView продолжает падать, и кажется, что UITableView не может отображать секундную строку по какой-то причине, но я понятия не имею, почему ... пожалуйста, помогите мне здесь, потому что я понятия не имею, что я могу делать неправильно ..... Спасибо !!
#import "SettingsView.h"
@implementation SettingsView
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
transmissionSetup = [[TransmissionSetupViewController alloc] initWithNibName:@"TransmissionSetupViewController" bundle:nil];
transmissionSetup.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
NSLog(@"%i", [self getMinutes]);
[self setSeconds:10];
secondsString = [NSString stringWithFormat:@"%i", [self getSeconds]];
[self.tableView reloadData];
}
#pragma mark Table view methods
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease];
}
if (indexPath.section == 0) {
cell.textLabel.text = @"Every:";
cell.detailTextLabel.text = secondsString;
}
// Set up the cell...
return cell;
}
@end