我是意大利人,很抱歉我的英语不好!当用户向下滚动时,UIButton不起作用
所以...我有一个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;
每厦门国际银行都有自己的.m和.h文件。 每厦门国际银行具有这样的结构:UIScrollView中 - > UIView的 - >的UITextView /的UIImageView/UIButton的
当我的UIButton具有Y> 460(因此用户向下滚动的看到它)的uibuttons“工作和不工作“! 有些时候uibutton的作品,但只有当你触及某个地区,而不是所有的uibutton地区! 其他时间的uibutton不起作用,它是不可能的触摸它(或更好的,如果你碰它没有发生!)
我敢肯定,只有当uibuttons是“down”(有Y> 460 )。 我试过在模拟器和设备中!
是不是荒谬? O_O
谢谢! :)
谢谢!也许因为我是一个新手,我用IB来创建UIScrollView。 ScrollView大320x460,在“内容”区域,Inset - > Bottom值是视图内UIView的高度。所以...在这个例子中,UIScrollView的“内容 - >插入 - >底部”值== 655. UIView(在scrollview中)有W:320 H:655 ...不正确? – JAA 2011-01-24 13:07:28