Apple Inc. said Tuesday that quarterly profit rose 31% on demand for the iPhone, even as the company faces questions over how it will maintain growth for its flagship product.

Booming iPhone sales have propelled the company to a string of strong results while withstanding a slowdown in the global smartphone market. Apple followed up its first large-screen iPhones with a pair of new releases in late September.

Chief...