Modified IBOutlet frame in Xcode 6.01

In a storyboard I have a view with multiple views in it, in each view I have multiple subzones.

In one of my subzones, I have 3 images and 3 labels. The labels are 0 wide because I set this later in the code. Everything worked fine with Xcode 5, but the shortcuts are gone since the upgrade to Xcode 6.

When I try to access one of the labels from the code and NSLog, this is what I get:

<UILabel: 0x78fc6e40; frame = (0 0; 0 0); text = 'Apple iPhone 5S'; clipsToBounds = YES; opaque = NO; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x78fc6f00>>

      

This way the label becomes frame 0 even if the storyboard is set differently.

I am not setting the frame to be null anywhere in the code.

If I set the width of the label to anything other than 0, I can see non-0 code in the code and see the labels, but this creates different behavior than I originally intended.

+3


source to share





All Articles