我正在尝试制作一个可以匹配字符串的各种变体的正则表达式。特别是我(n
将这两个词分开),我,我和Iam。
我试图在这里做,但它似乎不起作用:override func perform() {
var sourceViewController = self.sourceViewController as! UIViewController
var destinationViewController = self.destinationViewController as! UIViewController
var transition: CATransition = CATransition()
transition.duration = 1.25
transition.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut)
transition.type = kCATransitionPush
transition.subtype = kCATransitionFromRight
destinationViewController.view.layer.addAnimation(transition, forKey: "kCATransition")
sourceViewController.presentViewController(destinationViewController, animated: false, completion: nil)
}
制作空格,a和'可选。
我如何正确地做到这一点?
答案 0 :(得分:6)
答案 1 :(得分:2)