每種語(yǔ)言都可以實(shí)現(xiàn)建造者模式,oc的寫(xiě)法很奇特,以前在Facebook源碼里面看到類似的寫(xiě)法。http://www.cocoachina.com/ios/20150313/11328.html