<< operator in objective c enum?

后端 未结 6 1278
别跟我提以往
别跟我提以往 2021-02-04 05:46

I was looking for something and got in to this enum is apple UITableViewCell.h.

I am sorry if this is trivial but I wonder/curious what is the point of this.

I

6条回答
  •  感动是毒
    2021-02-04 06:34

    That is the bitshift operator. That is used commonly for objects that may have multiple behaviors (each enum being a behavior).

    Here is a similar post that may clarify it better.

提交回复
热议问题