Могу ли я просто проверить, что происходит, когда вы делаете следующее (см. Ниже), я прав, полагая, что iVars не создаются в «ИНТЕРФЕЙСЕ» только из трех свойств.В «РЕАЛИЗАЦИИ» эти три свойства присваиваются iVars с именами _window
, _animationTimer
& _currentFrame
, которые создаются командой @synthesize
?
// INTERFACE
@interface testDelegate : NSObject ... {
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, assign) NSTimer *animationTimer;
@property (nonatomic, assign) int currentFrame;
...
.
// IMPLEMENTATION
@implementation testDelegate
@synthesize window = _window;
@synthesize animationTimer = _animationTimer;
@synthesize currentFrame = _currentFrame;
...