Hey,
I am trying to write a cocoa touch static library. To keep it simple I would prefer not to use private variables within my interface file. The code right now looks like this:
interface file (myView.h):
@interface myView: UIView {
NSTimer * myTimer;
}
@end
implementation file (myView.h)
@implementation myView
@end
This NSTimer pointer is just a private variable so I tried this: (not working)
interface file (myView.h):
@interface myView: UIView {
}
@end
implementation file (myView.h)
NSTimer * myTimer;
@implementation myView
@end
It seems to work however it turned out that the timer is now a static variable.
Am I doing sth wrong or is there no solution?