Monday, November 26, 2012

9-Patch on iOS

9-Patches are pretty common for Android Developers.  Furthermore, they're absolute essential for making graphics on the platform.  A while back to save designers time, TuneWiki for iOS used them for all of our stretchable assets.  Unfortunately, iOS does not have native support for it, and there's really only one library.   I used this 9-patch library for iOS with my modifications for @2x support.  I'd like to personally comment that it turned out to be a terrible idea.  The overhead for image processing we experienced slowed our app down considerably--so much so that every conversation about performance ended in "Could we please just have our artists make an extra set of images?".  Thus, we stopped using it.  The issue relies in having to extract 9 pieces from the original image, and redraw each one of them (5 pieces with modifications).  Despite me having contributed to the project, I recommend that no one consider using it.  Just demand your artists create separate images and use -[UIImage stretchableImageWithLeftCapWidth:topCapHeight:]

6 comments:

  1. There really needs to be native support for this format across the board. We're porting a project to iOS and, quite frankly, the lack of quick and useful image stretching is a challenge that may result in the iOS version being the weaker one. Discrete image sizes are not always the best option, no matter how many sizes you make for them, and UIImage is cumbersome and time-consuming to use.

    ReplyDelete
  2. Apple may make it less demanding for clients to share recordings by including another web-based social networking application in iOS 10. find more info

    ReplyDelete
  3. If you don't mind fill me in regarding whether you're searching for an article essayist for your site. You have some truly incredible posts and I feel I would be a decent resource. On the off chance that you ever need to take a portion of the heap off, I'd completely love to compose some material for your web journal in return for a connection back to mine. If it's not too much trouble send me an email if intrigued. Much obliged to you! AppValley iOS 10

    ReplyDelete
  4. Positive site, where did u think of the data on this posting? I'm satisfied I found it however, sick be inquiring soon to figure out what extra posts you incorporate. Cyrus Installer Download

    ReplyDelete
  5. A debt of gratitude is in order for the post and awesome tips..even I additionally imagine that diligent work is the most imperative part of getting achievement.. Phantom for SnapChat

    ReplyDelete
  6. I needed to thank you for this phenomenal read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. Delta Emulator Download

    ReplyDelete