objective-cstoryboardoutlet

Cannot include outlets in file


I created a storyboard with a navigation controller inside. The View inside the nav controller contains a MKMapView. Now I want to create an Outlet in my viewController.m file. But when I try to connect from storyboard to the viewcontroller.m file using the assistant editor, nothing happens, and I am not allowed to connect the outlet to this file.

Did I miss something? Why can I not connect the file?enter image description here


Solution

  • Check if your MFnotuf controller on storyboard is inherits your ViewController classenter image description here