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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -