Tôi đã thêm UITextView
vào ô của mình. Nếu userclicks trên ô nơi UITextView
thì didSelectRowAtIndexPath:
không được gọi trừ khi họ nhấp vào khu vực nơi UITextView
không bao gồm. Có một công việc xung quanh hay những gì tôi đã làm sai?UITable Cell không thể chọn khi có UITextView trong ô
UITextView *txtview = [[UITextView alloc] initWithFrame:CGRectMake(75, 1, 250, 34)];//init and create the UIWebView
txtview.autoresizesSubviews = NO;
//txtview.autoresizingMask=(UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth);
[txtview setBackgroundColor:[UIColor grayColor]];
[txtview setFont:[UIFont fontWithName:@"Helvetica" size:15]];
txtview.textColor = [UIColor blackColor];
txtview.scrollEnabled = NO;
[txtview setOpaque:NO];
//[txtview setDelegate:self];
txtview.editable = NO;
txtview.text = aBlogRss.title;
[txtview setContentInset:UIEdgeInsetsMake(-11,-8,0,0)];
//[txtview loadHTMLString:htmlString baseURL:nil];
[cell addSubview:txtview];
[txtview release];
Nhiều Cảm ơn, -Code
Tại sao chọn Downvote? :( – Legolas