iOS Technology interview 08: Other

Source: Internet
Author: User

    1. How does client security work?

1> Network data transmission ( sensitive data [ account \ password \ consumption data \ Bank Card Account number ], cannot be sent in plaintext )

2> protocol Problems ( Custom Protocol , game leveling )

3> Local File Store ( Game Archive )

4> Source Code

    1. What is SIP?

1> SIP(sessionInitiation Protocol), Conversation Initiation Protocol

2> SIP is the IETF standard for VOIP connectivity , andtheIETF is the world's most authoritative technology standardization organization for the Internet.

3> so-called VOIP, is the internet phone, direct use of the Internet to call, do not consume mobile phone charges

    1. Some pictures load relatively slow how to deal with ? How do you optimize the performance of the program ? ?

1> picture download put on async thread

2> using placeholder images during picture download

3> If the picture is large, you can consider multi-threaded breakpoint Download

    1. Have you implemented a framework or library for others to use? If so, please talk about the experience of building a framework or library, and if not, imagine and design the APIfor the public of the framework,and point out what you might want to do and what you need to pay attention to. To make it easier for others to use your frame.

1> the interface function provided to the outside world is practical and sufficient

2> when someone else uses my frame, can I guess the specific function of the interface according to the class name and method name?

3> when someone calls an interface, whether the supplied arguments are sufficient or simple to call.

4> when someone else is using my frame, do not import dependencies on other frameworks

    1. The App needs to load huge amounts of data and send requests to the server, but how does the server get stuck?

1> Set Request Timeout

2> prompts the user for a request timeout

3> request data again based on user action

    1. What to do if the map navigation is not available

Prompt user to turn on navigation and positioning function

    1. Sdwebimage Concrete how to achieve

1> uses nsoperationqueue and nsoperation to download images and also uses GCD some of the functions ( decode GIF image )

2> use URL as key,nsoperation as value

3> use URL as key,UIImage as value

    1. What is the difference between AFN and ASI ?

1> AFN based on nsurl,ASI is based on the underlying cfnetwork framework, so ASI performance is better than AFN

2> AFN took The block way to process the request,ASI initially took the delegate Way to handle the request, and the block is also added later

3> AFN Only encapsulates a number of common functions to meet basic needs, directly ignoring a lot of expansion functions, such as no package synchronization request,ASI provides more features, reserved a variety of interfaces and tools for developers to expand their own

4> AFN directly parses the JSON,XML , and other data returned by the server , while the ASI is primitive and returns NSData Binary Data

    1. What kind of mobile phone architecture and performance debugging experience do you have in the actual development?

1> has just taken over the company's old projects, the module is very much, and almost all of the code is written in the controller, such as UI Control Code, network request code, data storage code

2> next takes the MVC pattern for encapsulation, refactoring

L Custom UI controls encapsulate internal business logic

L Package Network Request Tool class

L Encapsulated data Storage tool class

    1. Runloop Timing Source and input source

1> you create a program that does not need to display the Create run loop, each thread, including the main thread of the program,has a corresponding run loop Object , the main thread creates and runs the run loop itself

There are two different sources of input events processed by the 2> Run loop: input sourceand timer source

3> an input source to pass an asynchronous message, usually from another thread or program. The timing source transmits the synchronization message, which occurs at a certain time or at a certain time interval.

    1. What frameworks are used in your project, and what are the development tools , specifically which version , and what are the features of this version ??? ( For example , xcode version )

1> AFN,sdwebimage,mbprogresshud , etc. ( Search : NetEase News Third party libraries)

2> Xcode 5.0

    1. How to achieve the atomic lock yourself

general use of nonaotomic in IOS

    1. Big data processing in instant Messaging

upload to file server with put, then send a custom format with URL to each other, the other party receives the download after

    1. the specific implementation of JSON parsing

1> Sbjson

2> Jsonkit

3> nsjsonserialization

    1. If in the process of network data processing , found a comparison card , generally how to solve

1> Check if the network request operation is placed on the main thread

2> See if the number of asynchronous requests is too large (number of child threads)

Is the amount of 3> data too large? If it's too big, clear some unnecessary objects (invisible data, pictures)

4> phone CPU usage and memory issues

    1. How to introduce a project

Value of the 1> project (you can add "Boss" keywords)

Modules for the 2> project

3>, what module did I do?

    1. How to solve the problem of SQLite Lock

1> Setting the database lock handler function

int Sqlite3_busy_handler (sqlite3*, Int (*) (Void*,int), void*);

2> Setting the wait time when locked

int Sqlite3_busy_timeout (sqlite3*, 60); :

iOS Technology interview 08: Other

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.