I'am drawing collection view programmatically below the custom navigation bar but it starts from top if its frame change like this : CGRectMake(0.0,64.0 ,self.view.frame.size.width , self.view.frame.size.height) then it shows black screen on top i have attached screen shot and code also.Please tell me how can i start frame after navigation bar and remove black screen enter image description here:-
self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UICollectionViewFlowLayout *layout=[[UICollectionViewFlowLayout alloc] init];
collectionView_=[[UICollectionView alloc] initWithFrame:CGRectMake(0.0,64.0 ,self.view.frame.size.width , self.view.frame.size.height) collectionViewLayout:layout];
[collectionView_ setDataSource:self];
[collectionView_ setDelegate:self];
[collectionView_ registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"cellIdentifier"];
[collectionView_ setBackgroundColor:[UIColor redColor]];
[self.view addSubview:collectionView_];