//AppDelegate.h
AppDelegate NSInteger myInt;
@property (readwrite, assign) NSInteger myInt;
//AppDelegate.m
@synthesize myInt;
//MyClass.h
AppDelegate *objAppDelegate;
//MyClass.m
objAppDelegate = (AppDelegate *) [[UIApplication sharedApplication] delegate];
当我尝试为 myInt 赋值时
objAppDelegate.myInt=(NSInteger *)0; // <--- this gives warning: something like incompatible pointer to integer conversion like that
那么,我该如何分配这个变量呢?