Suntech, Gome interview Summary

Source: Internet
Author: User

Suntech

Q:sdwebimage source code, cell reuse. Ask for a small avatar first, then request a big avatar? What's the deal? Sdwebimagedownloader how to set a picture directly to cell

A: Image URL is the same, compare NSData

Q: Network request replacement BaseURL How to deal with it? Forums, Pc,app different baseurl interfaces

A:afnetworking How to encapsulate the

Q: How to do circular circles?

A: Call the Startanimate method in the completed callback

Q: How to handle three requests returned, with Dispatch group, please handwritten dispatch group, handwriting, no scheduling group, with what?

A: A useful Dispatch Group in the Orange Project

Q: How the Carousel loops, unlimited

Q:cell has a block attribute, the cell inside the reference itself will be circular reference, outside write a Weakcell

The difference between Q:tableview and CollectionView

Q: Empty object sends a message????

A: If self is empty, return to the place where you called objc_msgsend to continue execution

Gome

How to delete elements, hash why fast, time complexity, fast sort (not two while loop) stack

Q: Prevent block circular reference, in addition to using weak what else can be used?

A:__unsafe_unretained will not be set to nil __weak will be nil

Q: Which or all of the multiple block assignments will be executed?

A: Execute the last, Block copy property in the heap area, the variable is re-assigned, and the last assignment is what to say

q:string with copy?

A:string with copy is not changed, block with copy will change??? Or is it the first time the value is assigned??

Q: single example of storing user information, why does not exist directly inside the box? Write a static variable? Writing:?

A: An object created by the singleton pattern always exists in memory weight, can be used everywhere, Singleton, there is only one object in the system, provides the interface of global access. Static modified class instance initialized to nil, two static guarantees only one copy in memory

Q: What happens if you override the set get method at the same time?

@property will fail and rewrite the IVA pointer?

Q: Three objects circular reference, how to handle? Except with weak.

A: Set an object to nil

Suntech, Gome interview Summary

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.