3 ms·
If you boil down a UI element's description to a set of lines, colours and gradients, you can easily apply that to other elements at all scale factors, without
by DHowett 15y ago
If you boil down a UI element's description to a set of lines, colours and gradients, you can easily apply that to other elements at all scale factors, without having to ship piles of images (possibly in four different sizes, if you have iPad-specific assets) and deal with the horrible "stretchable images" system.
That aside, the ease of prototyping makes development that much faster.
- ryanpetrich 15y agoStretchable images are quite elegant: they are relatively easy to use, use less memory and memory bandwidth, perform all drawing on the GPU when paired with UIImageView, animate size changes effortlessly and automatically share their buffer between all image views that use a single resource. You can certainly add all of this to elements that are drawn "in code", but it's considerably more work.