Get UIView runtime dimensions

When I set my UIView in the interface builder to equal the width of the superview, it sets it to 600.

When I launch my application and print out the width of the UIView it says 600.

The screen width is only 320.

How can I get UIView as screen width?

thank

+3
xcode uiviewcontroller interface-builder uiview


source to share


No one has answered this question yet

Check out similar questions:

560
Xcode error 6: Unknown class in Interface Builder file
458
UIScrollView Scrollable Content Size Ambiguity
229
How to load UIView using nib file generated with Interface Builder
95
how to use UIScrollView in Interface Builder?
78
Can't resize UIView in IB
69
UIView backgroundColor disappears when UITableViewCell is selected
6
Custom UIView built with Interface Builder, accessible / positionable through Interface Builder
2
Center UIView inside UIScrollView using AutoLayout in UI Builder only
0
Custom UIView in UI Builder
0
UIView alway shows full screen in simulator while setting width and height to 320 x 320 pixels using Interface Builder



All Articles
Loading...
X
Show
Funny
Dev
Pics