Alan Quatermain

The Tumblog of one Jim Dovey, iOS Software Chief Architect at Kobo in Toronto, Ontario.
He Twitters, he has an , and can occasionally be found on LinkedIn or Facebook.
If you have a query, you can ask it here.

This blog contains personal opinions, and is not endorsed by any company.

4556997749
First, awesome grid view! I'm attempting to add zoom functionality to an AQGridView using a pinch gesture; similar to how the pinch gesture works in the Kindle app. I can get the scale needed from the gesture but am unsure how to apply the scale in such a way that the grid cells are recalculated. Currently I'm setting the portrait height and calling reloadData.

AskerAnonymous

I would assume that you would make it work like any other scroll view: set the minimumZoomScale and maximumZoomScale properties on the gridView (it’s a UIScrollView subclass, after all), then alter the zoomScale property in relation to the pinch gesture. The UIScrollView should do the rest. I think.

1 note

  1. quatermain posted this