Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a xib file with a smaller view?

Tags:

xcode

xcode4

Can I design a View smaller than the complete iPad screen size with UI Builder in xCode 4 ? If so, how ?

I need to design a small View I'm going to use multiple times in the same main UIView. I would like to design it with UI Builder, and then load it from xib.

But when I create a new xib file, the view size is always the iPad size.. thanks

like image 996
aneuryzm Avatar asked Dec 21 '22 14:12

aneuryzm


1 Answers

In Xcode 5, change Size to Freeform, under Simulated Metrics in the Attributes Inspector

like image 130
Dan Avatar answered Mar 11 '23 16:03

Dan