Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Eddy27

macrumors newbie
Original poster
Feb 15, 2015
3
0
I'm still learning objective-C and saw a really nice button push effect in the app Clash of Clans that I would like to emulate. Basically I want to learn how to make the button smaller and have a lighter color or glow when pushed, giving it a nice visual "pushed in" effect as shown in the attachment images. One is the normal state, the other the pushed in. I want to be able to do that programmatically if possible. How would I go about doing so?

Thanks!
 

Attachments

  • button1.PNG
    button1.PNG
    30.8 KB · Views: 88
  • button2.PNG
    button2.PNG
    25.5 KB · Views: 87
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.