启动屏幕可能没有触发segues。 main.storyboard

时间:2016-06-22 19:13:46

标签: xcode launch

所以我知道启动屏幕不能有segue,但我在func shadowBall (x: CGFloat, y: CGFloat) { let xpos: CGFloat = ((self.frame.width/2) + x) let ypos: CGFloat = ((self.frame.height/2) + y) let shadowBall = CAShapeLayer() let shadowBalllRadius: CGFloat = 4 let shadowBallPath = UIBezierPath(ovalInRect: CGRect(x: xpos, y: ypos, width: CGFloat(shadowBalllRadius*2), height: CGFloat(shadowBalllRadius*2))) shadowBall.path = shadowBallPath.CGPath shadowBall.fillColor = UIColor.clearColor().CGColor shadowBall.strokeColor = UIColor.clearColor().CGColor shadowBall.lineWidth = 0.1 let animation = CABasicAnimation(keyPath: "strokeColor") animation.fromValue = UIColor.whiteColor().CGColor animation.toValue = UIColor.clearColor().CGColor animation.duration = 1.0 animation.repeatCount = 0 animation.removedOnCompletion = true animation.additive = false animation.delegate = self animation.setValue(shadowBall, forKey: "animationLayer") self.layer.addSublayer(shadowBall) shadowBall.addAnimation(animation, forKey: "strokeColor") } override func animationDidStop(anim: CAAnimation, finished flag: Bool) { if let layer = anim.valueForKey("animationLayer") as? CALayer { layer.removeFromSuperlayer() } } 而不是while (<DATA>) { my ($line) = $_ =~ /;(.*)/; # capture everything after first `;` $line =~ s/;/\t/ for 1 .. 3; # substitute `;` for \t for first 3 occurrences print "$line\n"; } 下收到此错误。其他人有/有这个问题,知道如何解决它或我可能犯了什么错误?

0 个答案:

没有答案