I try to use anchorpoint in a layer hierarchy so that one layer can be moved with its sublevelers. Unfortunately, the novel does not rise simultaneously with the root layer. My level hierarchy in custom NSVU has been installed like the following snippet.
CALayer * rootLayer; Roulette = [[Calair layer] is maintained); RootLayer.position = CP Pointsmake (...); [Self Lear adhere: Roulette]; SabLayer = [[Maplayer layer] has been maintained; SubLayer.position = CP Pointsmake (...); [Rouletteare adblair: baslere]; When operating a mouse event, I want to set the root layer anchppoint to move the entire layer hierarchy:
rootLayer.anchorPoint = CGPoint (0.7, 0.7); I hope with this call, that Roulette runs together with its sub-layer so that the anchor point is at the center of the view. What happens, that has not been sub-relocated. Only when I call:
rootLayer.anchorPoint = CGPoint (0.7, 0.7); Sublayer Tocor Point = CP point (0.7, 0.7); Layers behave as expected.
I thought installing the anchor point of the root layer would be enough. It is used in my application for OS X. There I used to see and use the encorepoint to see the entire map. In the custom NSVU, the application treats as expected with only one sub-change.
Thanks in advance.
UPDATE : After discussing with a colleague, I work on the root level and now it works.
CALayer * rootLayer; Roulette = [[Calair layer] is maintained); Routler.bound = CGRactam (0, 0, 256, 256); RootLayer.position = CP Pointsmake (...); [Self Lear adhere: Roulette]; // ...
Comments
Post a Comment