The above SO answer is from here.
My question is :
The suggested code seems to be working as expected. But the problem is Xcode issues a warning against the statement pointed to by the red arrow. The warning is :
Instance method '-scrollViewDidScroll' not found (return type defaults to 'id')
Another issue is '-scrollViewDidScroll' returns "void" and not as 'id' which the compiler assumes.
Wish to get rid of the warning and let the compiler know that the return type is "void".
Hope that somebody could help ...