diff --git a/MTSlideViewController/MTSlideViewController/MTSlideViewController.m b/MTSlideViewController/MTSlideViewController/MTSlideViewController.m index f748714..8e1eb87 100644 --- a/MTSlideViewController/MTSlideViewController/MTSlideViewController.m +++ b/MTSlideViewController/MTSlideViewController/MTSlideViewController.m @@ -364,7 +364,7 @@ - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectInset(imageView.frame, 10.f, 0.f)]; titleLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:12.f]; - titleLabel.textAlignment = UITextAlignmentLeft; + titleLabel.textAlignment = NSTextAlignmentCenter; titleLabel.textColor = [UIColor colorWithRed:125.f/255.f green:129.f/255.f blue:146.f/255.f alpha:1.f]; titleLabel.shadowColor = [UIColor colorWithRed:40.f/255.f green:45.f/255.f blue:57.f/255.f alpha:1.f]; titleLabel.shadowOffset = CGSizeMake(0.f, 1.f); diff --git a/MTSlideViewController/MTSlideViewController/MTSlideViewTableViewCell.m b/MTSlideViewController/MTSlideViewController/MTSlideViewTableViewCell.m index dc1d771..1cbee7b 100644 --- a/MTSlideViewController/MTSlideViewController/MTSlideViewTableViewCell.m +++ b/MTSlideViewController/MTSlideViewController/MTSlideViewTableViewCell.m @@ -11,7 +11,7 @@ + (NSString *)cellIdentifier { } + (id)cellForTableView:(UITableView *)tableView style:(UITableViewCellStyle)cellStyle { - NSString *cellID = [NSString stringWithFormat:@"%@_%d", [self cellIdentifier], cellStyle]; + NSString *cellID = [NSString stringWithFormat:@"%@_%d", [self cellIdentifier], (int)cellStyle]; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID]; if (cell == nil) {