這堂很有用, 謝謝!
mitbrother 8 months ago
Thank you
vastpoint 11 months ago
獲益良多,thank a lot.
iccwkm 1 year ago
@iccwkm 唔洗客氣xDDDD
tongsanba 1 year ago
Vincent 請問上述例句中,你有時在NSLog中會用r.width , r.height, [r area], [r perimeter], 係吾係有持別用意? r.width and r.height = [r width] and [r height] ?
@iccwkm 係一樣的, 依個係叫dot notation(點運算符式)
例子for getters method: myVar = [someObject foo]; 係等於 myVar = someObject.foo;
例子for setters method: someObject.foo = myVar; 係等於 [someObject setFoo:myVar];
這堂很有用, 謝謝!
mitbrother 8 months ago
Thank you
vastpoint 11 months ago
獲益良多,thank a lot.
iccwkm 1 year ago
@iccwkm 唔洗客氣xDDDD
tongsanba 1 year ago
Vincent 請問上述例句中,你有時在NSLog中會用r.width , r.height, [r area], [r perimeter], 係吾係有持別用意? r.width and r.height = [r width] and [r height] ?
iccwkm 1 year ago
@iccwkm 係一樣的, 依個係叫dot notation(點運算符式)
例子for getters method: myVar = [someObject foo]; 係等於 myVar = someObject.foo;
例子for setters method: someObject.foo = myVar; 係等於 [someObject setFoo:myVar];
tongsanba 1 year ago