I believe Apple, unlike most companies that contract manufacturing to places like Foxconn, actually owns most, if not all, of the equipment inside the Foxconn facilities. If what I've read is correct, Apple is completely responsible for setting up the actual assembly lines as well. Foxconn essentially just provides the factory space and the labor.
I've also heard that Apple is the largest purchaser of CNC machining equipment in the entire world.
I'm curious to know how many years away we are from robotics being able to complete the final assembly of small electronics at the same speeds and low prices as humans and what affect this will have on countries like China that rely heavily on low cost factory labor.