IOS face question (ii)

Source: Internet
Author: User

1. Questions and Answers

I. The role of the readwrite,readonly,assign,retain,copy,nonatomic attribute.

Two. When to use delegate, when to use notification?

Three. Target-action mechanism

Four. Viewcontroller's Loadview, Viewdidload, and Viewdidunload when were they called? What should be done in these functions when customizing Viewcontroller?

Five. What is the difference between the #import跟 # include, @class, #import<> and #import "" What difference?

Six. What is a single-piece instance?

Seven. What is the difference between a shallow copy and a deep copy?

Eight. What is the difference between a method and a selector?

Nine. What is the difference between frame and bounds?

10. Use of the Inputview and Inputaccessoryview properties of the Uitextfield.

2. Single-Choice questions

One. The file management class in iOS is ()

A.uifilemanager.b. Nsfile c. nsfilemangager D. uifile

Two. Which of the following is a Mutable object ()

A.nsstring B. Nsarray c. nsmutabledictionary D.nsset

Three. The instruction to start a class implementation is ()

A[email protected] B. @[email protected] [email protected]

Four. The parent class of UITableView is ()

A.uiview B.uiscrollview C.uiresponder D.nsobject

Five. Let a UIView refresh the method is ()

Ainitwithframe B loadview c.drawrect D. Setneedsdisplay

Six. Initialization method of the Uinavigationcontroller class Initwithrootviewcontroller the accepted parameter cannot be an instance of the following class ()

A.uiviewcontrollerb.uitableviewcontroller C.uitabbarcontroller D. Uinavigationcontroller

Seven. The following is a thread management error ()
A. The cost of GCD is greater than that of nsthread.
B. You can modify UI elements in a child thread
C. Nsoperationqueue is a higher-level package than Nsthread
D. GCD can assign threads based on different priority levels

Eight. What is key window? ( )
A. The only UIWindow object in the app
B. You can specify the UIWindow of a key
C. UIWindow that can receive events such as keyboard input
D. The UIWindow object that cannot be hidden

Nine. In Xcode, you need to compile the mixed objective-c and C + + source files, you need to change the file format suffix ()
A. C B.. CPP C.. MM D.. M

10. Uiviewcontroller in the display process, the order in which each method is called ()


A. Viewdidunload, Viewdidappear, Viewdidload, Init
B. Viewdidunload, Viewdidload, Viewdidappear, Init
C. Viewdidappear, Viewdidunload, Viewdidload, Init
D. Viewdidload, Viewdidunload, Viewdidappear, Init

3. Code Questions

One. Use the loop statement to write the values of the following two-dimensional array diagonal (top right to bottom left, i.e. 4+7+10+13) position

intvaluearray[4][4]={

{1, 2, 3, 4},

{5, 6, 7, 8},

{9,10,11,12},

{13,14,15,16},

}

Two. Implementing the UITableViewCell of the style


IOS face question (ii)

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.