Uitableview &引用;“外观清晰”;不起作用

Uitableview &引用;“外观清晰”;不起作用,uitableview,xcode4.6,Uitableview,Xcode4.6,在XCode 4.6.3中,“在外观上清除”复选框不适用于行选择 所有视图控制器都会忽略此复选框。有人知道原因吗?有没有解决办法 以下是出现问题的其中一个视图控制器的代码 @implementation PointsOfInterestViewController @synthesize poi, urlTranslator; - (void)viewDidLoad { [super viewDidLoad]; poi = [NSArray arrayWithObjects:

在XCode 4.6.3中,“在外观上清除”复选框不适用于行选择

所有视图控制器都会忽略此复选框。有人知道原因吗?有没有解决办法

以下是出现问题的其中一个视图控制器的代码

@implementation PointsOfInterestViewController
@synthesize poi, urlTranslator;

- (void)viewDidLoad
{
    [super viewDidLoad];

    poi = [NSArray arrayWithObjects:
       @"Beaches",
       @"Churches",
       @"Coffee Shops",
       @"Discount/Low Cost Stores",
       @"Grocery Stores",
       @"Hotels",
       @"Libraries",
       @"Movie Theaters",
       @"Museums",
       @"Parks",
       nil];

urlTranslator = [NSDictionary dictionaryWithObjectsAndKeys:
                 @"beaches", @"Beaches",
                 @"http://m.westmont.edu/poi_churches_nonav.html", @"Churches",
                 @"coffeeshops", @"Coffee Shops",
                 @"discount", @"Discount/Low Cost Stores",
                 @"grocery", @"Grocery Stores",
                 @"http://m.westmont.edu/poi_hotels_nonav.html",@"Hotels",
                 @"locallibraries", @"Libraries",
                 @"movietheaters", @"Movie Theaters",
                 @"museums", @"Museums",
                 @"parks", @"Parks",
                 nil];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:     (UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
    {
    return poi.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    cell.textLabel.text = [poi objectAtIndex:indexPath.row];
    return cell;
}

#pragma mark - Table view delegate

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    UITableViewCell *cell = (UITableViewCell *)sender;
    NSIndexPath *indexPath = [self.tableView indexPathForCell:cell];
    NSString *pointofinterest = [self.poi objectAtIndex:indexPath.row];

    if ([segue.identifier isEqualToString:@"showPOI"]) {
    EmergencyWebViewController *ewvc = [segue destinationViewController];
    ewvc.navigationItem.title = pointofinterest;
    ewvc.myURL = [self.urlTranslator objectForKey:pointofinterest];
    }
}

您是如何选择行的?如果是编程的,你能发布代码吗?请更具体地说明重现问题的步骤。我通过点击选择了该行,这将我带到通过segue连接的视图控制器,然后单击“后退”按钮,该行仍然高亮显示,不会自行取消高亮显示(按惯例)。所以,什么都不是通过编程来完成的。你能发布你的控制器代码吗?当然,它已经被添加了。这是接口生成器的一个很好的bug,IMHO。在过去的几年里,我遇到了许多功能,包括标签栏着色、导航项目标题以及更多对结果没有任何影响的功能。