을 순간 나는 CollectionView 헤더 셀을 구현하는 간단한 UICollectionReusableView 클래스가 :CollectionView 헤더 셀에 SearchBar에 액세스 스위프트
override func collectionView(collectionView: UICollectionView!, viewForSupplementaryElementOfKind kind: String!, atIndexPath indexPath: NSIndexPath!) -> UICollectionReusableView! {
var reusableview:UICollectionReusableView!
if kind == UICollectionElementKindSectionHeader {
let headerView:SearchBarCollectionReusableView = collectionView.dequeueReusableSupplementaryViewOfKind(UICollectionElementKindSectionHeader, withReuseIdentifier: "SearchBar", forIndexPath: indexPath) as SearchBarCollectionReusableView
reusableview = headerView
}
return reusableview
}
내가 대표을 포함하여 UISearchBar 속성에 대한 액세스 권한을 얻는 방법 nd 텍스트 내 UICollectionViewClass?