Ios 表视图数组
现在我有一个对象数组Ios 表视图数组,ios,objective-c,segue,Ios,Objective C,Segue,现在我有一个对象数组 - (void)viewDidLoad { [super viewDidLoad]; self.webSites = [NSMutableArray arrayWithObjects:@"Website", @"iOS", @"Android", nil]; } 我正在尝试访问索引为0的站点,该站点应具有以下代码,以执行到另一个表视图控制器的切换,其中将有可供选择的类别 - (void)tableView:(UITableView *)tableVie
- (void)viewDidLoad
{
[super viewDidLoad];
self.webSites = [NSMutableArray arrayWithObjects:@"Website", @"iOS", @"Android", nil];
}
我正在尝试访问索引为0的站点,该站点应具有以下代码,以执行到另一个表视图控制器的切换,其中将有可供选择的类别
- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row == 0) {
[self performSegueWithIdentifier:@"viewCategories" sender:nil];
}
}
每次我运行应用程序时,我都会点击网站,但什么也没发生,但当我点击iOS时,segue就会执行。关于我为什么会遇到这个问题,有什么答案吗?您使用了错误的方法
didDeselectRowAtIndexPath // Used for deselecting the cell row
应该是
didSelectRowAtIndexPath // Used for selecting the cell row
你使用了错误的方法
didDeselectRowAtIndexPath // Used for deselecting the cell row
应该是
didSelectRowAtIndexPath // Used for selecting the cell row
你使用了错误的方法
didDeselectRowAtIndexPath // Used for deselecting the cell row
应该是
didSelectRowAtIndexPath // Used for selecting the cell row
你使用了错误的方法
didDeselectRowAtIndexPath // Used for deselecting the cell row
应该是
didSelectRowAtIndexPath // Used for selecting the cell row
为什么使用取消选择而不是选择?为什么使用取消选择而不是选择?为什么使用取消选择而不是选择?为什么使用取消选择而不是选择?