Reputation: 157
I am developing an application in which what i want is when i select something from scroll
view, the selected thing comes in the middle of the scroll view and one more thing which i
did not mention in question that if i am scrolling the scroll view,how can i fade the
contents which are not in the middle and again get them back in original color when they are
in middle.
Thanks,
Upvotes: 0
Views: 232
Reputation: 8147
Here are possible solutions to your questions:
contentOffset
according to the selected item's positionscrollViewDidScroll:
from the UIScrollViewDelegate
protocol and watch every item that is off-center, or place semi-transparent (with gradient) images over the edges of the scroll viewUpvotes: 1