Как и другие, уже опубликованные, есть свойство типа UILabel
. Если вы не знаете о классе, всегда нажимайте CMD и выберите класс, над которым вы работаете. В случае UICollectionView
вы бы увидели, что нет никакой собственности определена (UICollectionViewCell
класса внутри Foundation
:
NS_CLASS_AVAILABLE_IOS(6_0) @interface UICollectionViewCell : UICollectionReusableView
@property (nonatomic, readonly) UIView *contentView; // add custom subviews to the cell's contentView
// Cells become highlighted when the user touches them.
// The selected state is toggled when the user lifts up from a highlighted cell.
// Override these methods to provide custom UI for a selected or highlighted state.
// The collection view may call the setters inside an animation block.
@property (nonatomic, getter=isSelected) BOOL selected;
@property (nonatomic, getter=isHighlighted) BOOL highlighted;
// The background view is a subview behind all other views.
// If selectedBackgroundView is different than backgroundView, it will be placed above the background view and animated in on selection.
@property (nonatomic, retain) UIView *backgroundView;
@property (nonatomic, retain) UIView *selectedBackgroundView;
@end
Хорошее место для начала: http://www.raywenderlich.com/22324/beginning-uicollectionview-in-ios-6-part-12. Также Google действительно полезен – fguchelaar