You do know that Apple does most of what can be classed as R&D through its normal P/L operating units. So it's not like there is a separate iOS R&D team specifically churning out patents. Patents can and do come from ANY engineers across the company. It's the same at most companies.