Memory leaking

296 views
265 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
296
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Memory leaking

  1. 1. Memory leaking http://techmaster.vn
  2. 2. NSZombieNSZombie Disabled NSZombie Enabled http://techmaster.vn
  3. 3. Enable NSZombieStep 1 Step 2 http://techmaster.vn
  4. 4. Retain, Release with CFObject• Đối với các đối tượng có kiểu CF (CFString, CFArray) thì phải giải phóng bộ nhớ thủ công trong non-ARC và ARC. CFRetain(cfobj) & CFRelease(cfobj) http://techmaster.vn
  5. 5. Low memory warning• Override hàm didReceiveMemoryWarning để giải phóng bớt bộ nhớ không sử dụng. http://techmaster.vn
  6. 6. Ask http://techmaster.vn

×