iphone Programming Glossary: btnimageselected
Setting a background image for a tabbar http://stackoverflow.com/questions/8909379/setting-a-background-image-for-a-tabbar 60 self.view addSubview bgView Initialise our two images UIImage btnImage UIImage imageNamed @ settings.png UIImage btnImageSelected UIImage imageNamed @ settingsSelected.png self.settingsButton UIButton buttonWithType UIButtonTypeCustom Setup the button.. forState UIControlStateNormal Set the image for the normal state of the button settingsButton setBackgroundImage btnImageSelected forState UIControlStateHighlighted Set the image for the selected state of the button settingsButton setBackgroundImage.. UIControlStateHighlighted Set the image for the selected state of the button settingsButton setBackgroundImage btnImageSelected forState UIControlStateSelected Set the image for the selected state of the button settingsButton setBackgroundImage btnImageSelected..
|