이전에 선택한 행을 선택하는 버튼과 관련된 질문이 있습니다. 이것은 내가 지금까지 생각해 낸 것입니다. 그러나 새로운 기능을 사용하여 일부 포인터를 사용해야 할 수도 있습니다.버튼을 사용하여 행 선택 ... didSelectRowAtIndexPath 사용
단추가있는 도구 모음을 만들었으며이 단추 뒤에는 다음과 같은 작업이 있습니다. 내 didSelectRowAtIndexPath에서
-(void)clickRow
{
selectedRow = [self.tableView indexPathForSelectedRow];
[self.tableView:[self tableView] didSelectRowAtIndexPath:selectedRow];
}
내 기능 clickRow이 행을 선택하고이있는 (새로운 rootviewcontroller을 추진하는 것입니다 싶은 것이
rvController = [RootViewController alloc] ...etc
그래서 추진되는 rootViewController가
내가 나무를 사용하고 있기 때문에 올바른 정보). 나는 중간 행을 누르거나 다른이 끊임없이 toprow을 선택하면 예를 들어) ,
나는 이런 식으로 뭔가뿐만 아니라-(void)clickRow
{
NSDictionary *dictionary = [self.tableDataSource objectAtIndex:indexPath.row];
NSArray *Children = [dictionary objectForKey:@"Children"];
rvController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:[NSBundle mainBundle]];
rvController.CurrentLevel += 1;
rvController.CurrentTitle = [dictionary objectForKey:@"Title"];
[self.navigationController pushViewController:rvController animated:YES];
rvController.tableDataSource = Children;
[rvController release];
}
마지막 함수는 조금 작동하지만 조금 충분하지 않습니다를 시도했다.
thnx 읽고