I want to be able to add one allocation of a UIImageView to multiple UIViews. How would I do this without allocating multiple UIImageViews?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t have a view appear in more than one place. If you try then it will just get moved. Note, though, that UIImages are cached and should be handled efficiently when referred to by multiple UIImageViews, so I wouldn’t worry too much about multiple views.
If these multiple views are not displayed at the same time, you could just keep moving the UIImageView around in viewDidAppear.