tombenner / nui

Style iOS apps with a stylesheet, similar to CSS
MIT License
3.76k stars 459 forks source link

Resizeable Image Support #44

Closed savage7 closed 11 years ago

savage7 commented 11 years ago

I'd love to have some resizable image support like apple supports it: (UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets reference: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImage_Class/Reference/Reference.html

I'm not an css expert so I don't know how such thing would be best handled with css syntax.

suggestion 1: for every image property there is a inset property: background-image background-image-inset

suggestion 2: background-image: image(NUIViewBackground.png, 0,0,0,0):

suggestion 3: more nifty. support 9patch for ios ;) (https://github.com/andylanddev/Tortuga22-NinePatch)

tombenner commented 11 years ago

This was added in #47.