In the UIScrollView delegate methods, there's:
scrollViewWillEndDragging:withVelocity:targetContentOffset:
and the last parameter is:
(inout CGPoint *)targetContentOffset
I'm curious as to what the inout means and why CGPoint is a pointer. I tried printing targetContentOffset to the console, but I'm not sure how to do so as well. Any help is appreciated!
*targetContentOffset
to fetch the thing it points to, ortargetContentOffset->x
(->
instead of.
) to access members of a struct via pointer; I'm sure someone will give a properly substantial answer as to the whys. – Isthmus