objective c - Part of the image clickable in iOS -


I do not know this is the right place to ask this question.

This image view takes full screen when I am displaying an image in a UIImageView. The image contains Facebook, Twitter and Email buttons (there are actually no buttons - it is designed in the picture).

I want to make Facebook, Twitter and Email "button" and want to do something is it possible?

You are not doing it correctly

Most of the time when you If you create the interface, there are lots of logical components, and each component has its own functions (animation / noteable / editable components). For each of the different logical components, you should put a different element on it.

In your case, I will set a full screen UIImageView for background, add UILabel for texts on this (you can choose on it If there is no effect on your text, but this is what I like because it is more flexible in the future). And above those people, you can add UIButton s to tweepable elements, for example, Facebook and Twitter buttons.


Edit: If you hate different images, you can always create invisible buttons (no text-less buttons)

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -