N
N
Nikolai M2015-08-13 15:01:15
iOS
Nikolai M, 2015-08-13 15:01:15

How to cut png for ios for rubber components?

In design, I have cards with dynamic content. The card has rounded edges and a shadow. If I did for android, I would do Nine-patch . How does it work in ios?
What png should be done?
UPD:
So, to create a screen with dynamic cards, I can give the developer such a png file,
and he will make nine-patch out of it using those services, but for ios? png file for developer (scale 1:1):
022405edc8244e54bf24846f0fde8472.png
0380eb54323f4bbaa803358241e0aa8b.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
An, 2015-08-13
@Flanker_4

You can also use Nine path in iOS,
here, for example, one of the libraries that allows you to do this
But it's better to use ready-made iOS mechanisms
- through code, see UIImage methods
- Using the image asset catalog feature called Slicing
The last one is preferable

O
one pavel, 2015-08-13
@onepavel

The code sets indents that do not stretch, and probably in the interfaceBuilder you can also put

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question