Can anyone explain to me how to pass multiple values into a parameter or variable in objective-c as below and how to handle it inside method:
view.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin
| UIViewAutoresizingFlexibleTopMargin;
What you’re seeing is a simple disjunction between integers, the UIView autoresizing mask parameters are just typedef’ed enum values. You can create these on your own:
Then you define a method that accepts them as parameter:
And call this method as follows: