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.

14 comments:

  1. 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?
    And is v2.1 still on schedule for release this week?

    ReplyDelete
  2. Awesome, I can't wait for the update now!
    I 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.

    ReplyDelete
  3. 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
    Will it let you still use one icon instead of three?
    that was the only thing i didnt like about stacks 2.0

    ReplyDelete
  4. Superb! I find your blog is very useful. Keep posting. Thanks for the sharing.

    ReplyDelete
  5. Will Stack ever be available in the apps store or will you have to jailbreak your phone to get it?

    ReplyDelete
  6. Never will be on the appstore,
    unless apple becomes a open platform which i doubt it

    ReplyDelete
  7. Yes! Finally an update for stacks. Can't wait :D

    ReplyDelete
  8. any word on release?

    ReplyDelete
  9. I think it was delayed :( probably wont hear about in these couple of days

    ReplyDelete
  10. I 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. :(

    ReplyDelete
  11. So its delayed again ... Oh well the longer the wait, the better it gets when it comes out. Take you time...

    ReplyDelete
  12. hey 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