Vipin
Vipin

Reputation: 4728

Image view with a top button in cocoa-touch

i have UIimageView named as myImage.

i need to display a button on the left side of my image view.

however when i am running my app,the image view hiding the button.so cant able to show a button on top of the image view .please can any one help me...

Upvotes: 0

Views: 426

Answers (1)

Simon Lee
Simon Lee

Reputation: 22334

Add the button as a subview of the imageview...

[myImageView addSubview:myButton];

Then...

[myImageView setUserInteractionEnabled:TRUE];

Upvotes: 2

Related Questions