我正在制作一个简单的应用,我已使用UIViewController
通过按钮将一个Push segue
与另一个SIGABRT error
相关联,但当按下该按钮时,它会UIViewController
,我可以& #39;弄清楚原因?
我还检查了与此按钮相关的任何其他段,我必须将其删除,但没有其他触发的段落。
这是我的 @IBOutlet weak var menuButton: UIButton!
let transition = CircularTransition()
override func viewDidLoad() {
super.viewDidLoad()
menuButton.layer.cornerRadius = menuButton.frame.size.width / 2
}
func dismissKeyboard() {
view.endEditing(true)
}
func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
transition.transitionMode = .present
transition.startingPoint = menuButton.center
transition.circleColor = menuButton.backgroundColor!
return transition
}
func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
transition.transitionMode = .dismiss
transition.startingPoint = menuButton.center
transition.circleColor = menuButton.backgroundColor!
return transition
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
代码,我有这个简单的圆形动画。
@ControllerAdvice
public class FooControllerAdvice {
@InitBinder
public void initBinder(WebDataBinder binder) {
binder.registerCustomEditor(
Date.class,
new CustomFooEditor()
);
}
}