Rare scenes of unrest in China have spread online as protests broke out at the main factory that manufactures Apple iPhones.