У меня есть панель навигации, на которой есть пользовательская кнопка, в которой есть событие щелчка кнопки, есть настраиваемое всплывающее меню, в котором есть таблица, когда я нажимаю на строку таблицы. Метод didselectrowatindexpath не вызывает вызов.Проблема с навигационной панелью
Я использую этот код, пожалуйста, решить эту проблему
Введите код
-(void)backButtonClicked1
{
// create and configure the view
CGRect cgRct = CGRectMake(220, 30, 93, 135); //define size and position of view
myView = [[UIView alloc] initWithFrame:cgRct];
myView.backgroundColor=[UIColor clearColor];
[myView setUserInteractionEnabled:YES];
UIButton *btnpop=[[UIButton alloc]initWithFrame:CGRectMake(0, 0, 93, 140)];
[btnpop setUserInteractionEnabled:YES];
[btnpop setImage:[UIImage imageNamed:@"[email protected]"] forState:UIControlStateNormal];
[myView addSubview:btnpop];
//[self.navigationController.navigationBar bringSubviewToFront:myView];
// [myView release];
table = [[UITableView alloc]initWithFrame:CGRectMake(1,20,90,114)
style:UITableViewStylePlain];
[table setUserInteractionEnabled:YES];
table.backgroundColor = [UIColor clearColor];
table.separatorColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"[email protected]"]];
table.scrollEnabled=NO;
table.layer.borderColor = [UIColor clearColor].CGColor;
table.layer.borderWidth=1.0;
table.layer.cornerRadius = 4;
[table setDataSource:self];
[table setDelegate:self];
[myView addSubview:table];
myView.autoresizesSubviews = YES;
//allow it to tweak size of elements in view
[self.navigationController.navigationBar addSubview:myView];
[self.navigationController.navigationBar bringSubviewToFront:table];
}
Я не вижу ничего о didselectrowatindexpath в вашем коде при условии, уход, чтобы загрузить его? –