-drawInRect: is a new function from 10.9 SDK, replace it with -drawInRect:fromRect:operation:fraction: