small medium large xlarge

Generic-user-small
18 Nov 2008, 09:46
Erik Meißner (2 posts)

Hi, i created an iPhone application with a custom view inside an UIScrollView. My custom view has a CATiledLayer as core animation layer. So far everything works as expected: tiling, scrolling and zooming. But one thing i do not understand, perhaps someone has a good explanation. The properties for content offset, content size, … are changing while zooming in and out. If i want to keep track about the positioning of my custom view inside the scroll view i am not able to calculate the correct positioning. How can i retrieve the center of the visible area of my custom view independent of the actual zoom scale? So that i can store this position and use this point later to reposition my custom view independent of the actual zoom scale? Thank you for every input!

Best regards, Erik

You must be logged in to comment