Xcode 6 beta4, UIButton not responding in collectionviewcell

I am using Xcode 6.0 beta 4, I find that the buttons in UICollectionViewCellare not a response to the answer.

Details like:

UICollectionViewController

--- UICollectionViewCell

------ UIButton( UIButtonhas two restrictions autolayoutfor placement UIButtonin the vertical center and horizontal center in Cell)

Now let's make the size Cellapproximately as follows: (300, 1000)

Run the application on the iPhone Simulator or device with iOS 7.0 or 7.1.x, the button is insensitive, but check in the simulator iOS 8.0 this is normal. Also, if I change the cell sizeto (300, 200), the button works.

I think this is a bug in this version of Xcode, right?

And where can I run the Apple error?

+4
2

autoresizingMask contentView UICollectionViewCell

.

self.contentView.autoresizingMask = UIViewAutoresizingFlexibleHeight |    UIViewAutoresizingFlexibleWidth;
+6

, , iOS 7 Xcode 6. ecotax post , Apple DTS:

iOS 7 . iOS 8 , layoutSubviews. iOS 8, iOS 7, , . , - , .

, iOS 7, , , .

Alexey :

- (void)awakeFromNib
{
   // Fix for iOS 7 devices targeted using Xcode 6.
   self.contentView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
}
+1

All Articles