Changing label position in UICollectionViewCell
问题 We have a UICollectionView which has a prototype cell on the Storyboard. The cell has a UILabel (" label ") in it, which is positioned without autolayout. We set the frame of the label conditionally in the -collectionView:cellForItemAtIndexPath: with setFrame like this: - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { CategoryCell *cell; cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Category"