Swift animatewithduration extra argument" delay"在电话中

时间:2015-10-21 20:37:07

标签: xcode swift

func textFieldDidBeginEditing(textField: UITextField) {
        let theWidth = view.frame.size
        let theHeight = view.frame.size
        if (UIScreen.mainScreen().bounds.height == 568) {

            if (textField == self.profielnameTxt) {
                UIView.animateWithDuration(0.3, delay: 0.0, options:UIViewAnimationOptions.CurveLinear, animations: {
                    self.view.center = CGPointMake(theWidth/2, (theHeight/2)-40)
                    }, completion: {
                        (finished:Bool) in
                })
            }
        }
    }

这是我的代码。并且我不断获得额外的纪念碑'延迟'在我尝试构建它时打电话。我正在敲打我的头脑并搜索谷歌,但我无法找到错误的地方

0 个答案:

没有答案