Apple beat Wall Street analysts' sales and income expectations for the quarter ended in September, despite an otherwise bruising earnings season for tech companies and worries that demand for the newest iPhones might have been weaker-than-expected.