I have a pretty big view controller in my application and I want to clear it by dividing some functions into categories. I read about how to implement a category and has:
#import "StatsVC.h" @interface StatsVC (TableViewDelegate) @end
Like my .h (the category is called StatsVC + TableViewDelegate). and my Implemation begins as follows:
@implementation StatsVC (TableViewDelegate)
Several times in a category, I refer to variables that are iVars of the source class. I have read and it is supposedly allowed, but for every use of iVar in the category I get this error message:
'Use of undeclared identifier 'iVar'
Does anyone know why this is happening?
Thanks,
source share