I am trying following code but nothing works :
CGRect frame = collectionview.frame;
collectionview.frame = CGRectMake (frame.origin.x, frame.origin.y+100, frame.size, frame.size-100);
AutoLayout is set to true for the project.
I am trying following code but nothing works :
CGRect frame = collectionview.frame;
collectionview.frame = CGRectMake (frame.origin.x, frame.origin.y+100, frame.size, frame.size-100);
AutoLayout is set to true for the project.
Try below code:
CGRect frame = collectionview.frame;
collectionview.frame = CGRectMake (frame.origin.x, frame.origin.y+100, frame.size.width, frame.size.height-100);
Try this one :
CGRect frame = collectionview.frame;
frame = CGRectMake (frame.origin.x, frame.origin.y+100, frame.size, frame.size-100);
collectionview.frame=frame;