D
D
David Koifman2017-08-26 10:15:09
Swift
David Koifman, 2017-08-26 10:15:09

How to combine image and text in xcode?

Hello, I'm making an application with themes. That is, I have themes, I go into one topic and get information on it. Everything works fine for me. But I need to add pictures to most of them where there will be information and then a picture. Where then there will be two pictures somewhere, one
somewhere will not be at all. To add information to topics, I use an array. And I assign unique information to each topic. I think I can also use an array with pictures? How to do this? If something is not clear, write.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
arturios571, 2017-08-26
@arturios571

make an array of images optional in the model and that's it)

A
Alexander Tikhonov, 2017-08-26
@tikhonov666

If the question is about the data structure, then you simply make an optional array of images.
If the question is how to display it on the screen, then you can use UITextView + attachments

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question