Rules for releasing
- variables which hold primitive data do not need to be released
- if u allocate an object u are responsible to release it
- if u use retain to keep an object aoround, u are responsible for releasing it
- if u use a method which allocate and returns a object on it's own, u are not responsible for releasing it.
- you are not responsible for releasing strings that are created using the @"text" syntax
沒有留言:
張貼留言