Apple CEO Tim Cook

Apple CEO Tim Cook

David Paul Morris/Bloomberg

Apple Inc. Chief Executive Officer Tim Cook is contending with thinning profit margins and slowing sales growth as rival gadget makers such as Samsung Electronics Co. and Amazon.com Inc. take on Apple with lower-priced devices.