I have a UIView that rotates the view when I want to change the size and position. However, I need to be able to do this program, not using layout settings and autosizing. At the end I tried to change the frame and border of the call to rotate the device and call again, but it does not matter that the combination of variables that use the result always goes wrong. What I'm just going to screw up the code, and can not do too much code to post here. Can someone signal me how this can be accomplished? I do not know where and where it looks.
This is the code that I use for portrait layouts that work:
clusterMap.frame = CGRectMake (0, self .view.frame.size. Height / 2, self.view.frame.size.width, self.view.frame.size.height / 2); ClusterMap.bounds = CGRectMake (-clusterMap.frame.size.width / 2, -clusterMap.frame.size.height / 2, Cluster Map.frame.size.width, clusterMap.frame.size.height); [Clustermap setnaides display];
But when I try to use the customized version of this code with different data, it only shows that the screen is the picture if I change the figures, then some There are pictures and some scenarios, all kinds of weird things happen. An example that I can describe is that the image can come in a reasonable proportion, but it can be pasted on the wrong proportion boundary. I have tried every combination of those data that I can think of, swapping the width and height between the coupled value in a timely manner, and none of these combinations work.
- (zero) Will Animatoration interface Orientation: (NSTEIn Interval) duration {} >
But if you need more help then by adding a piece of code, ^^
Comments
Post a Comment