Giter Site home page Giter Site logo

alninepatchimage's Introduction

#ALNinePatchImage#

An UIImage category, supports 9-patch resizable image for iOS.

##Example##

##What's 9-patch image##

9.png (9 patch)images are widely used in Android. It helps us to reduce the size of resizeable image.

This is the 9 patch description for Android. most the same as ALNinePatchImage, but ALNinePatchImage doesn't support the padding box. so we just need the top and left black line to indicat the stretchable area.

NOTE: the black line always 1px width for top line and 1px width for left line, no matter what scale the image is. And the 1px border is the extra data, not including in the size of the real image that would be shown in your UI.

##How to install##

###Using cocoapods###

  pod 'ALNinePatchImage',          '~> 0.1'

###Or copy the following files to your project###

UIImage+NinePatch.h
UIImage+NinePatch.m

alninepatchimage's People

Contributors

alexlee002 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.