IOS Development Notes (10)

Source: Internet
Author: User

February 22, 2016-lantern Festival

Today's interview, there are three questions that I am not sure:

What is the difference between the 1,OC protocol and the Java interface?

OC @protocol have @required and @optional.

What is the difference between 2,uiview and Calayer?

A, UIView can respond to events, calayer not;

B, UIView is the management of the display content, Calayer is the rendering of the display content;

C, each uiview has a calayer to provide the content of the drawing and display, View.frame simple return view.layer.frame.

Http://www.cocoachina.com/ios/20150828/13244.html

How do 3,oc and C mix?

IOS Development Notes (10)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.