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

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -