2013-06-04 1 views

답변

0

는 질문에 대답하지 않는 등 여기에 ... 어떻게되는지 ... 사람이 더 좋은 방법이 있다면

In routine that tells the indexPath to scroll to 
Scroll to IndexPath 
tableMoving = true 
set NSTimer to fire MovingDone at 0.1 

In scrollViewDidScroll 
if tableMoving 
    invalidate timer 
    timer = nil 

In scrollViewDidEndScrollingAnimation 
if tableMoving 
    call MovingDone 

In MovingDone 
moving = false 
// do end of table scrolling code here 
0

, 이렇게 :

BOOL visible = NO; 
for (UITableViewCell *cell in [tableView visibleCells]) 
    if ([indexPath isEqual:[tableView indexPathForCell:cell]]) { 
     visible = YES; 
     break 
    } 

당신은 당신이 어떤 대리자 메서드를 처리 할 때, 당신의 뷰 컨트롤러의 멤버 변수로 볼 점은 그 값을 확인할 수 있습니다 할 수 있도록해야하는 경우.

+0

음 인 NSTimer를 사용했다 밝혀졌다. 테이블이 여전히 위로 스크롤 될 수 있습니다. 또한 휴식은 고토입니다. 또한 비동기 방식으로 알림을 받아야합니다. – ort11

관련 문제