开发者

Mixing faces of two persons

开发者 https://www.devze.com 2023-01-09 01:52 出处:网络
I have two images that I want to split each into 3 parts. If I click on the开发者_开发技巧 first image, the first part for eg forehead then second image first part i.e forehead will come by replacing

I have two images that I want to split each into 3 parts. If I click on the开发者_开发技巧 first image, the first part for eg forehead then second image first part i.e forehead will come by replacing first part and remaining two parts of the first image should be unaltered. Likewise all three parts should change while clicking that part how can I achieve this?


Why not just create a set of UIButton objects stacked on top of eachother with user interaction enabled and set the images in those.. then when one button is tapped, you check which one was tapped based on sender or tag and hide the button pressed, but show the next one underneath it? When you get to the last button in the stack, show the top button again.

This would pretty much be a switch-case just setting hidden to yes/no.

0

精彩评论

暂无评论...
验证码 换一张
取 消