[Solved] Scrollview content center alignment in iOS app [closed]
I will give u a HINT: Take the scrollView’s bounds, get midX, say X1. Take all the visible button’s frames, and then their frame’s midX, say X2’s. Calculate absolute differences, between X1 and X2’s, whichever button has the smallest one, scroll the scrollview to that button’s frame. Have Fun. Cheers 1 solved Scrollview content center … Read more