Tuesday, December 3, 2013

Ask questions about grammar symbol is what is meant by

@ Interface MyScrollView: UIScrollView

When asked at the flower I know the meaning of inherited colon is MyScrollView inherit UIScrollView, may I ask what the meaning behind the ah? Is the meaning of <> the symbol of
Please do not joke sister ah.
Reply:
To achieve an agreement, similar to the interface implemented in java.
Reply:

Press C + + syntax to understand, UIScrollView is a template class, is a template class UIScrollView implementation type parameter T.

object c syntax, that I think should be similar in this sense. But I did not specifically confirm.
Reply:
Thank you, I searched the second floor next to the relevant information
Reply:
Not the slightest relationship with the template
1st floor right
Reply:
Objective-C have a look at it first
Reply:
Obediently protocol did not know it can be developed? ? ?
Reply:
Agreement on behalf of inherited UIScrollViewDelegate
Reply:
Big Brother first to buy the book Objective c to look and see. Otherwise, the class met again when asked.
Reply:
Similar to the java implements
Reply:
XXX follow protocol
Reply:
Protocol is doing?
Popular speaking under you?

Reply:
Generally refers to a callback. And c inside almost the same function pointer

No comments:

Post a Comment