The company said iPhone sales remained strong, but warned that the cost of memory chips for its devices was going up.