Fixed Bug where I was extending ViewController, instead of UIViewController.