Apple Inc. says it played no role in the National Security Agency's alleged efforts to hack the iPhone, explaining that it was unaware of a recently revealed program apparently aimed at turning the best-selling smartphone into an improvised listening device.