1

Inside one of sample codes from WWDC 14 I've found following line in init: in subclass of UICollectionViewController:

[self setEdgesForExtendedLayout:UIRectEdgeLeft | UIRectEdgeBottom | UIRectEdgeRight];

When I had commented it out, it changed nothing. What was the reason to put it there? What is it actually for?

Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
  • possible duplicate of [Explaining difference between automaticallyAdjustsScrollViewInsets, extendedLayoutIncludesOpaqueBars, edgesForExtendedLayout in iOS7](http://stackoverflow.com/questions/18798792/explaining-difference-between-automaticallyadjustsscrollviewinsets-extendedlayo) – Michał Ciuba Mar 01 '15 at 16:45

1 Answers1

0

'edgesForExtendedLayout' is used to specify which edges of a view should be extended, regardless of bar translucency.

May be you are using this as a view controller which is not embedded in any other view controller or is a root view controller. You can refer it in apple's official documnetation here.

SandeepAggarwal
  • 1,273
  • 3
  • 14
  • 38