syntax - How to assign a value to a double bracketed expression in Objective C -
specifically, how can rewrite following example of dot syntax equivalent bracket syntax:
cell.textlabel.text = @"this cell";
i thought this:
[[cell textlabel] text: @"this cell"];
a read-write property composed of 2 methods - getter , setter.
the name of getter corresponds name of property. name of setter prefixed set
; first letter of property capitalized:
[[cell textlabel] settext: @"this cell"];
Comments
Post a Comment