myView.frame.origin.x = value; does not work – But why?
There are two distinct dot syntaxes being used here. They look the same, but they do different things depending on what they are operating on and what is being done with it: The first myView.frame is a shorthand for [myView frame], a method call that returns a CGRect struct by value. myFrame.origin.x is accessing ordinary … Read more