0
단추가있는 사용자 지정 셀이 있습니다. 나는 대신 긴 보도 자료를 사용하여 실험하고 싶다.사용자 지정 표 셀, 사용자 지정 XIB 및 긴 프레스 인식기 - 함께 작동 할 수 없습니다.
는세포를 생성하는 코드는 다음과 같습니다
CustomCell *cell = (CustomCell *)[aTableView dequeueReusableCellWithIdentifier:@"CustomCell"];
if (!cell)
{
// cell = [[[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil] lastObject];
cell = [[[NSBundle mainBundle] loadNibNamed:@"CustomCellDwellToSpeak" owner:self options:nil] lastObject];
}
가 그럼 난 원래 XIB의 사본을 만들어 :
CustomCell *cell = (CustomCell *)[aTableView dequeueReusableCellWithIdentifier:@"CustomCell"];
if (!cell)
{
cell = [[[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil] lastObject];
}
(등)
그래서 나는이했다. 버튼을 삭제했습니다. 셀 상에 UILongPressGestureRecognizer 하락 및 제어 드래그 형식으로 파일의 소유자로 인식 대상을 만들어 :TypOHD[41541:c07] -[UILongPressGestureRecognizer label]: unrecognized selector sent to instance 0x17d0be60
: 나는 세포를 생성하기 시작하면
- (IBAction)longPress:(UILongPressGestureRecognizer *)sender;
그러나, 나는이 오류가 얻을를
그게 뭐야?