What does this line represent? Please any one explain about |
symbol?
self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
What does this line represent? Please any one explain about |
symbol?
self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
is bitwise OR operator.
You can find more on it here.
the values of both the constanst are as, it find bitwise on them.
UIViewAutoresizingFlexibleWidth = 1 << 1 //2
UIViewAutoresizingFlexibleHeight = 1 << 4 //16
This will be :
UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight = 18