Reputation: 38960
Do you need to @property (nonatomic, assign) int variable;
in the .m file? If not, is there a reason why you don't need to release it?
Upvotes: 0
Views: 189
Reputation: 364
You need to release only those variable that you allocated or used.
Upvotes: 0
Reputation: 13622
Yes, there's a good reason not to release it - it's not an object. And you should use @synthesize in your implementation (.m), and @property in your interface (.h).
Apple's The Objective-C Programming Language is a great place to find answers to questions like this.
Upvotes: 5