KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I saw the syntax below in some example code and am not sure I understand it. CGRect imageRect = (CGRect){.size = baseImage.size}; Is this simply a shorthand way of initializing a CGRect equivalent to: CGRect imageRect = CGRectMake(0,0,baseImage.size.width, baseImage.size.height); Is there any benefit to this syntax aside from slightly less typing?
Tags (comma-separated)
Save Edits
Cancel