objective-c - myrectgle.origin=mypoint; 这条语句是怎么调用图片中的setOrigin方法的?
怪我咯
怪我咯 2017-04-24 09:11:22
0
1
533

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
洪涛

myrectgle is an object. myrectgle.origin =xxx sets myrectgle.origin through the dot method. If you use @property when declaring origin, the compiler will automatically generate a - (void)setOrigin:(XYPoint *)pt method; if you write it again in the m file - (void)setOrigin:(XYPoint *)pt is equivalent to repeating After writing this method, setting the origin through the dot method will call this method;

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template