cocoa touch - Resizable UIView with content "bitmap" size independent of bounds.size -


effect

i want achieve effect of uiview subclass implementing drawrect: can scaled way down full-size zero-size make vanish, way zero-size full-size make reappear.

requirements

i don't want use contentmode uiviewcontentmoderedraw means redraw every animation frame, slow.

i'd need able create original uiview @ full-size, zero-size, or size between. regardless of uiview's creation size, calayer's size (or whatever entity bitmap managed with) should always needed full-size view. calayer scaled necessary size of uiview display.

a normal uiview achieves this, provided begins life @ full-size (when drawrect: called) , "vanished" down zero-size. fails if uiview begins @ zero-size, , expanded again "reappear" it.

if technique works standard uiviews , not subclasses, that'd better.

thank you.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -