Created
November 27, 2015 06:05
-
-
Save HiromichiYamada/723078817741c6cdbdad to your computer and use it in GitHub Desktop.
画面毎にnamespace的なclassを使うと便利じゃないかと思いついた
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
でも、storyboardとかと繋げられない(storyboard内に、Contents.ViewController と書けない)からダメっぽい。。