How to resize xib file in xcode 6?
2 answers
While Matt is correct that you cannot set the final size of the main view of an IB file (we're talking about an IB file that only contains a view), you can resize the view in IB if you need to get an idea of how it will look during execution. This assumes, of course, that you set the correct dimensions at runtime. But it definitely helps to be able to get the size you want by looking at it in IB and then get the sizes from there.
Just select View, navigate to the Attribute inspector: Simulated Metrics → Size: Freeform.
+6
source to share