//root controller
class subviewcontroller;
@rootviewcontroller:UIViewController
{
NSInteger a;
}
call a in subviewcontroller
super.a=1;
system reported:
error:Request for member ‘a' in something not a structure or union
welcome any comment
interdev
You nee to make it a property and synthesize it.
like:
In the header file
and in the implementation file:
Hope this helps.
Thanks
Madhup