저는 scrollview를 사용하고 있고 대리자 메서드를 구현하고 있습니다.Scrollview의 매개 변수 유형에 분산 된 개체 수정 자가 충돌합니다.
-(void) scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(CGPoint *)targetContentOffset{
CGPoint p = *targetContentOffset;
int counter = [self counterForPosition:p];
*targetContentOffset=[self positionForCounter:counter];;
//load month -2;
self.month=counter-2;
}
Xcode에서 경고 메시지가 표시됩니다. 'scrollViewWillEndDragging : withVelocity : targetContentOffset :'구현시 매개 변수 유형의 분산 객체 수정 자 충돌이 발생했습니다.
일부 힌트를 발견 했으므로 아직 완전히 이해하지 못했으며 문제가 해결되지 않았습니다. Singleton release method produces warning?
이제 경고 일 뿐이며 오류가 발생하지 않습니다. 내 개인 OCD라고 생각합니다.이 문제를 해결하고 싶습니다.
텍사스
해결 했습니까? 나는 똑같은 문제를 겪고있다. –