Cannot use super because it is a root class error – xcode project

By | October 7, 2013

 

Cannot use super – xcode

Getting an error “cannot use super because it is a root class” and wasn’t able to find the proper solution. After a while found that have misplaced the name so “self” calling was not working.


This error may appear either you haven’t written @interface “” @end or misplaced the name of it or written a different name after “@implementation”

Cannot use super because it is a root class error in Xcode project !

e.g. in above image, as I was working on CoRoViewThree_iPad, when I replaced “Four” with “Three” and similarly Three instead of Two in @implementation, the error resolved.


Such kind of error mostly occurs when we copy the codes of different view controllers and forget to change the names.