anyone got any ideas on how to reproduce the gloss of iPhone app icons using WebKit and CSS3 and/or a transparent overlay image? Is this even possible?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Can not export audiofiles via “open in:” from Voic
- XCode 4.5 giving me “SenTestingKit/SenTestKit.h” f
iPhone OS uses the following images to compose the icon:
This is how I have implemented the above using only the
AppIconOverlay.png
in my app. I kind of like the desired effect.It doesn't have the shadow, but I'm sure if you really wanted it you could modify the code in order to suit your needs. In terms of the
AppIconMask.png
I couldn't really see any need in using this since I use the#import <QuartzCore/QuartzCore.h>
framework in order to achieve the desired effect by adding alayer.masksToBounds
andlayer.cornerRadius
.I hope this works for anyone who is interested in achieving the Apple Springboard overlay effect. Oh and thank-you to rpetrich for providing those images.
I apologise for the lack of comments in the code. It's a culmination of code from similar existing implementations scattered all over the internet. So I'd like to thank all of those people for providing those bits and pieces of code that are used as well.
Usage: