Skip to content

Instantly share code, notes, and snippets.

@HiromichiYamada
Created November 27, 2015 06:05
Show Gist options
  • Save HiromichiYamada/723078817741c6cdbdad to your computer and use it in GitHub Desktop.
Save HiromichiYamada/723078817741c6cdbdad to your computer and use it in GitHub Desktop.
画面毎にnamespace的なclassを使うと便利じゃないかと思いついた
import UIKit
class Contents {
enum Section: Int {
case Top = 0
case Contents = 1
case Notes = 2
}
enum ValueType {
case Float
case Int
case String
}
class ViewController: UIViewController {
}
}
let vc: Contents.ViewController = Contents.ViewController()
@HiromichiYamada
Copy link
Author

でも、storyboardとかと繋げられない(storyboard内に、Contents.ViewController と書けない)からダメっぽい。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment