I have a button which has been added to a UILabel and that UILabel is being added on UIView and finally that UIView has been added to a scroll view.
This is my code:
nextBtn=[UIButton buttonWithType:UIButtonTypeCustom];
nextBtn.frame=CGRectMake(250, 8, 26, 26); //2626
[nextBtn setImage:[UIImage imageNamed:@"disclosure1.png"] forState:UIControlStateNormal];
[nextBtn addTarget:self action:@selector(nextBtnClkd) forControlEvents:UIControlEventTouchUpInside];
[reviewLabel addSubview:nextBtn];
[middleView addSubview:reviewLabel];
[mScrollView addSubview:middleView];
[self.view addSubview: mScrollView];
Now the nextBtnClkd method is not being called on button click.
Please help me.
THanks
Ben
Does your UILabel accept interaction events?