开发者

Objects do not retain the frame that I give then when using CGAffineTransforms with Core Animation

开发者 https://www.devze.com 2022-12-11 22:45 出处:网络
I\'m making a game where when a card is touched, it grows so that it is focused, and when you \'let go\', it goes back to its original size and place.This seems pretty standard, however, when I add ca

I'm making a game where when a card is touched, it grows so that it is focused, and when you 'let go', it goes back to its original size and place. This seems pretty standard, however, when I add cards and move the hand around to ac开发者_开发问答commodate different numbers of cards, touching the card makes it go to its original place, and not to the new place.

This has been stumping me for a while now Any hints would be much appreciated.

Thanks !


As far as your problem is not much clear I think the frames are not retained by the objects. This can be a problem if you are just assigning the frames to objects. You should try to set the frames of your objects. Then this will work if the frames positions are right.

Hope this will help. If I didnt get you pls be more clear.

0

精彩评论

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

关注公众号