After changing the name of UIViewController the controllers showing
warning and i can not connect connect controllers to this class.
Find the code where you're instantiating the view controller. It should look something like:
MyViewController *mvc = [[MyViewController alloc] initWithNibName:... bundle:...];
When you find that line, look at the values you're passing for the nib name and bundle. Chances are, you'll need to change the nib name that you're passing in. Either you're passing an incorrect name, or you're passing nil
. If if the first case, simply correct the name. If you're passing nil
, again, just change that to reflect the actual name of the .xib file. (It's common to use nil
because UIViewController
will use the class name as the nib name if you pass in nil, so nil
is a handy shortcut.)