我是意大利人,很抱歉我的英語不好!當用戶向下滾動時,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