Answer the question
In order to leave comments, you need to log in
Which object should be used to correctly invoke the segue transition?
There are two tasks of the same type:
1. There is a text, by tapu on which there is a transition to another screen (ala Master-Detail). Immediately the question is: What is better / good / correct to use to display this text? UIButton styled as UILabel or UILabel and add UITapGestureRecognizer to it?
2. Let's say we have a user avatar, by clicking on which a screen opens with additional information about the user. The question is similar. Which is more suitable UIImageView with UITapGestureRecognizer or UIButton with backgroundImage set?
So far I have done it with buttons, but it confuses me - the button should be a button, the link should be text, and the picture should be a picture.
PS Some advised to make text and picture text and picture (UILabel and UIImageView), and make invisible buttons on top of them. This approach seems strange to me.
Answer the question
In order to leave comments, you need to log in
...we have a user's avatar, which, when clicked, opens a screen with additional information about the user...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question