So what I’m trying to do is to write a simple gallery app – detail view behaves pretty much like the PhotoScroller provided by Apple in their sample code section on developer.apple.com, that is it allows the user to swipe across all the images. What I’d like to do is to update the title property on users swipe, in other words, if the user changes the image she’s looking at, the self.title property should update itself to that photo’s title. I know that is possible, since Apple’s own Photo app is capable of displaying the current index (“1 of x”). How can this be done? I’d really appreciate any suggestions and thank you in advance.
Share
When you scroll the
ScrollViewafter ending the scrollingmethod is call. So You can give the title inside this method. First Make an array of your all
Image’s title. Then if your image’s width is 320, then use this :-