ios - Does this type casting assign the address or the data? -
cell of type uitableviewcell*
locationcell *locationcell = (locationcell *)cell; is assigning address of cell locationcell , preserving same instance of object? equal locationcell *locationcell = &cell?
if cell variable of type locationcell * there no need cast. if cell type (such uitableviewcell *), cast 1 thing - tells compiler know better. know object type , not type indicated variable's declaration.
the value isn't changed in way. in words, yes, preserving same instance of object. not @ last sentence.
Comments
Post a Comment