How to resize an UIImageView (swift)
问题 I'm a beginner with swift and I can't get the resize of a UIImageView working. Here is my current layout : What I want is to resize the images to occupy half the screen's width (2 images per row). Here is my storyboard : Here is the function drawing the collection view inside my controller : func collectionView(collectionView: UICollectionView!, cellForItemAtIndexPath indexPath: NSIndexPath!) -> UICollectionViewCell! { var cell : MenuInspirationCellView = collectionView