Apple snapped out of a recent iPhone sales slump during its summertime quarter