안녕하세요. 내보기에 tableView
이 있습니다. 하지만 탐색 모음의 편집 tableView 작동하도록합니다. 이걸 어떻게 할 수 있는지 말해 주시겠습니까?탐색 표의 편집 버튼을 사용하여 하위 표보기
기본보기에 탐색 모음이 설정되어 있고 tableView
도 설정되어 있습니다. 나는
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
뿐만 아니라 설정이
- (UINavigationBar *)createNavigationBar
{
UINavigationItem *title = [[UINavigationItem alloc] initWithTitle:@"Task Manager"];
UINavigationBar *new = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemEdit target:self action:nil];
title.leftBarButtonItem = addButton;
[new pushNavigationItem:title animated:YES];
UIColor *color = UIColorFromRGB(0xff8c00); // Dark orange
new.tintColor = color;
return new;
}
:
나는 네비게이션을 만들 줄 방법을했다.기본적으로 기본 탐색 모음에서 편집 버튼을 누르면 sub-tableView에 빨간색 원이 표시되어야합니다.
내가 명확하지 않으면 죄송합니다. 설명이 필요한지 저에게 물어보십시오.
감사합니다. :)