uitableview - Avoiding blended layers when using resizableImages on iOS -
i'm trying avoid blended layers on ios improve performance. however, notice resizable image i'm using backgroundview
of uitableviewcell
beingness marked blended layer:
in fact, using resizable image--even jpeg no transparency--caused layer blending, seen in screenshot first png , jpeg used resizable image in uiimageview
. resizable image didn't require blended layer 1x1 pixel image, seen @ bottom:
is there way avoid this? core animation profiling imprecise fine art (atleast me), think it's main contributor dropping around 25 fps when scrolling table view.
edit2: upon more experimentation, found if vertically or horizontally stretched images (either png or jpg), weren't marked blended layers. however, upon more experimentatio think may because images stretched in 1 dimension smaller. image not beingness treated blended @ 100x100, @ 150x100.
i created wide image , stretched vertically. did not require blended layers, , achieves right effect table view cell. isn't ideal, because of little height it's still 236 bytes retina image.
ios uitableview uiimage core-animation instruments
No comments:
Post a Comment