Menu

#3 RegionView doesn't center image

open
nobody
Interface (2)
3
2003-03-08
2003-03-08
Jim Powell
No

The Region Image View doesn's center the background image in the scrollView and turn off the horizontal & vertical when they aren't needed.

Set your scrollview class as an FBScrollView to automatically take care of the scrollers and subclass FBCenteredImageView to get a collection of basic functionality that will ensure all the views are consistent. The view implementation doesn't change the bounds so it should't affect your region coordinate implementation.

NOTE: the Apple HIG argues against not showing the scrollers, but since we're essentially doing an image editor we need to implement like all the other image editors out there which do hide the scrollers.

Discussion


Log in to post a comment.