我有一个按钮已被添加到UILabel和该UILabel被添加到UIView和最后该UIView已被添加到滚动视图。UILable上的UIButton没有得到点击
这是我的代码:
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];
现在nextBtnClkd方法不被调用上按一下按钮。
请帮帮我。
感谢
本
谢谢,其工作 – 2012-07-09 09:41:52