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
objective-c uilabel ios8 xcode6 cgrect


source to share


No one has answered this question yet

Check out similar questions:

204
In a storyboard, how do I create a custom cell for use with multiple controllers?
153
Autosave issue of UICollectionViewCell content calendar in Storyboard prototype cell (Xcode 6, iOS 8 SDK) occurs when run on iOS 7 only
103
Custom font size in Xcode 6 size classes does not work as expected with custom fonts
37
Text views and image disappearing from view controller in Xcode 6.1, storyboards
3
Trying to configure ABPersonViewController - cannot iterate over its subzones
0
How to center UILabel text horizontally (up / down) in a frame?
0
Set frame (CGRect) to devices by number of characters - Swift 3
0
Organize and customize UILabel position on devices - Swift 3
0
UILabel text output
-1
How to wrap Xcode UILabel text with storyboard settings



All Articles
Loading...
X
Show
Funny
Dev
Pics