English 中文(简体)
奥斯托斯变革。 轮换:打破窗口
原标题:ios transform.rotation.y breaks up window

在我的链条中,我有一个棘手问题。 我对我屏幕上的每个区块(其中26个)都设置了栏目,当用户向它们发出警告时,我只字不提。 它发挥了巨大作用,但在我这样做之前,我会增加一个规模的估算,使其在屏幕上增加大约50%。 因此,我的顺序是:

enlarge delay (let user see the large image) spin-out 90% (removes block from view) - using transform.rotation.y change image & spin-in shrink.

我设立了窗户观察控制员,作为这些区块的代表,这样它就可以通过对照区块,这样我就可以把右子放在首位(使用固定位置)。

这一切都发挥了巨大作用,但我有两个区块在屏幕上站在上面/在座,这样大群就会使其重叠,然后当平流 an开始时,它就立即有右侧, block在下面的栏目下。 我试图改变 an子,以改变.子,在 blocks子旁边时采取同样的行动。

我不敢肯定的是,如果我不做什么是正确的,那会给我带来一场幻觉。 任何建议都受到高度赞赏。 下面是附带办法:

- (void)spinOut:(id)sender
{
    NSTimeInterval animationTime=0.85;

    [UIView animateWithDuration:animationTime
                      delay:0
                    options: UIViewAnimationOptionCurveLinear
                 animations:^{
                     // setup the animation to spin the current view out
                     [CATransaction begin];
                     [CATransaction setDisableActions:YES];
                     CABasicAnimation *spinOut = [CABasicAnimation animationWithKeyPath:@"transform.rotation.y"];
                     [spinOut setDelegate:self];
                     [spinOut setDuration:animationTime];
                     CAMediaTimingFunction *tf = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
                     [spinOut setTimingFunction:tf];
                     [spinOut setFromValue:[NSNumber numberWithFloat:M_PI * 0.0]];
                     [spinOut setToValue:[NSNumber numberWithFloat:M_PI * 0.5]];
                     [spinOut setRemovedOnCompletion:NO];
                     [spinOut setFillMode:kCAFillModeForwards];

                     // setup variables used to roll in the next view on animation completion.
                     [pageView.layer addAnimation:spinOut forKey:kMyVeryOwnABCsSpinOutKey];

                     [CATransaction commit];
                 }
                 completion:^(BOOL finished){
                     [self setFlipOutAnimationTimer:[NSTimer scheduledTimerWithTimeInterval:animationTime target:self selector:@selector(spinIn:) userInfo:nil repeats:NO]];
                 }];

 }
最佳回答

大韩民国——这是一个老的问题,但我很想指出这一问题。 页: 1 我在击退了Y轴心周围的这些图像,我得以改变 image化的形象。 我在开场白方法中补充说:

  float pageLevelLayerPosition;
  // logic to set the zposition variable 100 more than anything nearby 

  _originalImageViewZPosition = bigImageView.layer.zPosition;
  [bigImageView.layer setZPosition:pageLevelLayerPosition];

之后 DidStop,我添加了相关的法典线,将其重新编为零,当时我正在消除 an。 我有一些管理变量的法典,因此我得到保证,这个数字比附近的任何数字要多。

我猜想,如果我听从3-D的感受,那么我就需要更加密切地控制这一局面,但这正是造成我问题的原因。

问题回答

暂无回答




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签