Apple is expected to give details this week of how outside programmers can create software for its iPhone, a move aimed at spurring demand for the multifunction device. Apple also said it will unveil new iPhone features aimed at businesses, potentially stepping up competition with Research in Motion’s popular Blackberry devices.