相关疑难解决方法(0)

在视图控制器之间滑动手势

我正在尝试在背景上创建一个滑动.我有三种不同颜色的背景.我做了一个按钮,当我点击我的按钮时,我的背景变为下一个场景.我想改变这个,我想向左或向右滑动我的拇指来改变背景而不必点击按钮.我怎么做到这一点.

这里有一些更多的细节

我的视图控制器是

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

cocoa-touch ios swipe-gesture xcode-storyboard xcode6

3
推荐指数
2
解决办法
1万
查看次数

iOS:"单向"导航控制器的最佳实践?

我正在开发一个应用程序,它本质上是许多不同测试的序列(为简单起见,考虑SAT测试或Mensa测试).每个测试都在不同的View + View Controller中实现.

最初我想使用Storyboards和UINavigationControllers来管理测试的顺序和它们之间的转换,但现在我质疑这种方法的有效性.UINavigationController是一个堆栈,而我的导航只是单向的(一旦你完成了一个你不能回去的测试).有没有更好的方法来实现应用程序?我还能以某种方式利用故事板吗?

memory-management uinavigationcontroller ios uistoryboard

2
推荐指数
1
解决办法
4627
查看次数