i have a UICollectionView(detailCollectionView) and a View that contains 3 labels inside. What i want to do is when the collectionView finishes scrolling then i will change the contents of these labels. here what i have done
when i run it collectionView scrolls but it comes back to the start position ? what can be wrong here ?
Code:
- (void) scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
[UIView animateWithDuration:0.2 animations:^{
[self changeTheLabelTexts:@"CAtegori" baslik:@"Title" icerik:@"Description"];
self.containerView.alpha = 1.0;
}];
}
- (void) changeTheLabelTexts:(NSString *)kategori baslik:(NSString *)baslik icerik:(NSString *)icerik {
self.lblAciklama.text = icerik;
self.lblBaslik.text = baslik;
self.lblKategori.text = kategori;
}
when i run it collectionView scrolls but it comes back to the start position ? what can be wrong here ?