ios - Set Image on UITabBar Contoller -
i have developed tabbar base application have 5 tabs , trying set images on each tabs. ive used inbuid functionalities provide xcode setting images im not getting exact results want.
here tabbar controller
in case getting images in grey colors actual images not grey colored images. please 1 have solution solve issues.i want set image reties have.
thank you.
begin ios 7, can choose treat of images in app template—or stencil—image. when elect treat image template, system ignores image’s color information , creates image stencil based on alpha values in image. uiimage
has new property named renderingmode
default rendering mode uiimagerenderingmodeautomatic
. experience means template image when init image need
uiimage *image = [uiimage imagenamed:@"someimage"]; uiimage *thisoneshouldbeused = [image imagewithrenderingmode: uiimagerenderingmodealwaysoriginal]
see template images in uikit user interface catalog more information
Comments
Post a Comment