drawrect Vs layoutsubviews - NSView - Cocoa touch

Viewed 6788

I can't find a decent answer to explain me the difference between these 2 functions. when does every one gets called, and how does one different then the other ?

for example , can't I just layout my views inside drawrect ?

Thanks

2 Answers
Related