Perhaps instead of `[layoutFrame frame].size` do `layoutFrame.frame.size` as most `frame` properties are generally accessed property style.