Just one pixel!
Just had a major breakthrough with a stupid API on iPhone.
You see, if you set an image on a UIButton, and then rotate said button, you end up with a nasty jagged edge along the top only!
This had been bothering me ever since Stack 1.0, and I'd never thought to investigate. The actual problem is the clipping rect used by the system is sharp and aliased. However, if you move your images down just a single pixel in Y, you fix it!
An albeit verbose way of setting an image to a button, I used:
As a result, I now have smooth icons =)
NB: Jailbreak developers: For the record, do *not* use the [UIImage drawAtPoint:] API, it leaves garbage at the side of the image. Use the official drawAtPoint:blendMode:alpha: and you'll be alright.
This is officially my favourite new feature in Stack v2.1.
Subscribe to:
Post Comments (Atom)
Are you still planning on allowing users to adjust the position of the Stack so it works well with more (or less, I guess) than four icons?
ReplyDeleteAnd is v2.1 still on schedule for release this week?
Yup to both =]
ReplyDeleteAwesome, I can't wait for the update now!
ReplyDeleteI actually hoped everyday for about a month after Stacks came out that I'd be greeted with an update that allowed me to use it with five icons.
It's definitely going to be worth the wait though.
Thank god, this was and is my favorite app and i thought it was forgotten, what with all the other projects you had. Glad to see it back
ReplyDeleteWill it let you still use one icon instead of three?
that was the only thing i didnt like about stacks 2.0
Superb! I find your blog is very useful. Keep posting. Thanks for the sharing.
ReplyDeleteWill Stack ever be available in the apps store or will you have to jailbreak your phone to get it?
ReplyDeleteNever will be on the appstore,
ReplyDeleteunless apple becomes a open platform which i doubt it
Smooth icons for stacks! Yay!
ReplyDeleteYes! Finally an update for stacks. Can't wait :D
ReplyDeleteany word on release?
ReplyDeleteI think it was delayed :( probably wont hear about in these couple of days
ReplyDeleteI hope the release is soon; I have Stack installed but deleted the .dylib (so I'd see the update still but wouldn't have the older version, since Cydia's Changes section only seems to show new packages) and I already miss it. :(
ReplyDeleteSo its delayed again ... Oh well the longer the wait, the better it gets when it comes out. Take you time...
ReplyDeletehey stephen, what's up? you said on the 8th, that there'd be a release that week and we've heard nothing since. can you let us know where you're at?
ReplyDelete