A
A
Anton Agaltsov2016-05-10 22:53:43
iOS
Anton Agaltsov, 2016-05-10 22:53:43

How to remove free space if there is no picture?

There is a news table. When a news is selected, a view opens where the imageview, title, text, etc. goes on top.
If there is no picture in the news, then the imageview is not processed (I tried to hide it), then an empty space remains.
What is the best way to proceed in this case? so that when there is no picture, there is no empty space?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
ManWithBear, 2016-05-11
@Archusha

Set the constraint to the height of the imageView. If there is no image, then change the value of the constraint to 0.

A
Alexander Semchenko, 2016-05-11
@0xcffaedfe

Show picture "no photo" ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question