scrollview - UIView Frame and Bounds -
im relatively new ios , working in uiviews frame , bounds...
when worked on uiscrollview , trying handle on zoomtorect, minimumzoomscale , zoomscale etc... logging bounds , frame after zooming , frame smaller bounds of uiimageview? thought frame , bounds supposed relative?
how can frame smaller?
i can figure bounds viewing window maybe not understand relationship between 2 properties...
it of import note if transform view, frame becomes undefined. means if rotate, scale or other transformation shouldn't utilize frame values anymore. values may alter can't trust them , shouldn't utilize them. can still utilize bounds values, though. apple docs warn:
if view’s transform property not contain identity transform, frame of view undefined , results of autoresizing behaviors.
see also:
http://stackoverflow.com/a/21691081/3681880 http://stackoverflow.com/a/28917673/3681880 uiview scrollview frame bounds
No comments:
Post a Comment