I think it is because you did not hold the reference to the instance of the delegate, and it got released because it is declared weak
. You might be doing this:
pdfView.delegate = [[points alloc] init];
which you should fix to something like:
_points = [[points alloc] init];
pdfView.delegate = _points;
where _points
is instance variable.