¡@

Home 

2014/10/15 ¤U¤È 10:12:41

iphone Programming Glossary: play.png

Retina icons (@2x) aren't being used when images are specified in code

http://stackoverflow.com/questions/3442239/retina-icons-2x-arent-being-used-when-images-are-specified-in-code

icons @2x aren't being used when images are specified in code I place a play.png image onto my view. When the view initially loads the iPhone 4 grabs the corresponding play@2x.png file and it looks great... I tap the play button my code swaps it out for the pause.png file. Then when I tap the pause.png to bring back the play.png it uses the original play.png file not the @2x version like I thought it would automatically reference . This is the code.. swaps it out for the pause.png file. Then when I tap the pause.png to bring back the play.png it uses the original play.png file not the @2x version like I thought it would automatically reference . This is the code I tried to use button setImage..

iOS SDK : playing music on the background and switching views

http://stackoverflow.com/questions/8467533/ios-sdk-playing-music-on-the-background-and-switching-views

self toggle button IBAction MusicPlaying id sender if isPlay isPlay UIImage buttonImageNormal UIImage imageNamed @ play.png UIImage stretchableButtonImageNormal buttonImageNormal stretchableImageWithLeftCapWidth 0 topCapHeight 0 MusicButton setBackgroundImage..