Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
I'm trying to clone, mirror Main UIView to Preview UIView. Main UIView is 2 times bigger than Preview UIView. I'd like to move UILabels and images on Main UIView and clone (synchronize) that movement on preview UIView. I have been searching a solution however no found. Anybody know? Thank you for in advance!
I'm trying to clone, mirror Main UIView to Preview UIView. Main UIView is 2 times bigger than Preview UIView. I'd like to move UILabels and images on Main UIView and clone (synchronize) that movement on preview UIView. I have been searching a solution however no found. Anybody know? Thank you for in advance!
You might be able to use Core Image Layers to do that. There is a layer type CAReplicatorLayer that will duplicate the contents of one layer in another. I haven't used it though.
Regards,
Duncan C WareTo
Animated GIF created with Face Dancer, available for free in the app store.
Thank you, Duncan! I'll reserch about CAReplicatorLayer!
Various iOS books show how to use replicator layers to set up a reflection, like the reflections used in coverflow.
Marcus Zarra's Core Animation book has an example project that does very close to what you want. It creates a custom subclass of UIView, ReplicatorView, that replicates all the subviews added to it in a reflection that is displayed below.
It would be quite easy to adapt that code to instead make the image smaller and place it somewhere else.
Regards,
Duncan C WareTo
Animated GIF created with Face Dancer, available for free in the app store.
Replies
You might be able to use Core Image Layers to do that. There is a layer type CAReplicatorLayer that will duplicate the contents of one layer in another. I haven't used it though.
Duncan C
WareTo
Animated GIF created with Face Dancer, available for free in the app store.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeMarcus Zarra's Core Animation book has an example project that does very close to what you want. It creates a custom subclass of UIView, ReplicatorView, that replicates all the subviews added to it in a reflection that is displayed below.
It would be quite easy to adapt that code to instead make the image smaller and place it somewhere else.
Duncan C
WareTo
Animated GIF created with Face Dancer, available for free in the app store.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome