转载请注明来源 1 CGSize,CGPoint,CGRect的使用,直接调用x,y,width,height四个属性,而且不用加().例子defineClass('PZPhotoView', { zoomRectForScale_withCenter: function(scale, center) { var zoomRect = {x:0,y:0,width:0,height:0}; zoomRect.width = self.frame().width/ scale; zoomRect.…