P
P
perfectura2014-10-09 15:11:08
Objective-C
perfectura, 2014-10-09 15:11:08

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

2 answer(s)
M
ManWithBear, 2014-10-10
@perfectura

...we have a user's avatar, which, when clicked, opens a screen with additional information about the user...

Don't you think you're contradicting yourself? You demand that the picture go somewhere that is the work of links, and then you are indignant that the picture is not a picture.

I
Igor Vasilenko, 2014-10-09
@spbvasilenko14

Use UIButton. Why complicate things?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question