【发布时间】:2011-01-24 11:51:45
【问题描述】:
我是意大利人,很抱歉我的英语不好!
所以...我有一个 UITableView 并且每个单元格都使用以下代码打开一个 xib 文件:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.section == 0) {
if (indexPath.row == 0){
detail = [[name_class alloc] initWithNibName:@"name_xib" bundle:[NSBundle mainBundle]];
detail.navigationItem.title = @"Title";}
//then the others indexPath.row with the others xib
然后
[self.navigationController pushViewController:detail animated:YES];
[detail release];
detail = nil;
每个 xib 都有自己的 .m 和 .h 文件。 每个xib都有这样的结构:UIScrollView -> UIView -> UITextView/UIImageView/UIButton
当我的 UIButton 有 Y>460(所以用户必须向下滚动才能看到它)时,uibuttons“有效且无效”! 有时 uibutton 有效,但前提是您触摸某个区域,而不是所有 uibutton 区域! 其他时候 uibutton 不起作用,不可能触摸它(或者更好的是,如果你触摸它什么都不会发生!)
我确信只有当 uibuttons 处于“向下”状态(Y>460)时才会发生这种情况。 我在模拟器和设备上都试过了!
是不是很荒谬?? O_O
谢谢! :)
【问题讨论】:
标签: iphone uitableview uiview uiscrollview uibutton