Tag: s

如何在下方顶部的collections视图中为节添加标题

我正在使用search栏的集合视图。 我已经添加search栏通过鳕鱼从(0,0)orgin从顶部。 所以现在我的形象是这样的: [![在这里input图片描述] [1]] [1] 但我需要在我的search栏下面的标题。 我通过故事board.But,但运行我的标题名称和search栏是在相同的orgin.I需要把我的标题部分在myseaarch酒吧下面。 注:我唱3段header.any想法或代码是非常有帮助的。 在这里我的search栏的代码… #import "CollectionViewController.h" #import "CollectionViewCell.h" @interface CollectionViewController ()<UISearchBarDelegate> @property (nonatomic,strong) NSArray *dataSource; @property (nonatomic,strong) NSArray *dataSourceForSearchResult; @property (nonatomic) BOOL searchBarActive; @property (nonatomic) float searchBarBoundsY; @property (nonatomic,strong) UISearchBar *searchBar; @property (nonatomic,strong) UIRefreshControl *refreshControl; @end @implementation CollectionViewController static NSString * const reuseIdentifier = @"Cell"; – (void)viewDidLoad { [super […]