我一直在查看加载屏幕的不同示例 - 有没有办法在检测到点击时插入过渡屏幕(滑动)?目前 UIImage.imageNamed 会立即加载下一个图形 - 如何让它滑动?
def viewDidLoad
view.image = UIImage.imageNamed('welcome.png')
view.userInteractionEnabled = true
recognizer = UITapGestureRecognizer.alloc.initWithTarget(self, action:'nextScreen')
view.addGestureRecognizer(recognizer)
end