I am using a common class for my app and an extension Today.
I am also using a preprocessor macro: iOS 8 Extension How To Detect Running.
How can I get a instance of UITodayViewController?
#if WIDGET
// here
#else
//....
#endif
I am using a common class for my app and an extension Today.
I am also using a preprocessor macro: iOS 8 Extension How To Detect Running.
How can I get a instance of UITodayViewController?
#if WIDGET
// here
#else
//....
#endif
If your asking how to make a singleton from a UIViewController:
Add a static instance to an extension.
extension UITodayViewController {
static let shared = UITodayViewController()
}