IOS development-interview, ios development --

Source: Internet
Author: User

IOS development-interview, ios development --

Today, I went to the interview early in the morning. The company was very close to my family. It took me an hour to walk and print my resume. I thought it was good to ask the company interviewer, I also gave me a lot of knowledge, and the receipt is full. I would like to sum up what problems have been encountered today and adjust the status.

1. How do I customize the number of items in tabbar to be variable?

I originally wanted to define a custom tabbar here, but it is estimated that the class creation class method under runtime should be investigated dynamically. Then I will simply talk about runtime and do not know whether the answer is good, however, the principle is correct. obtain the class name in the key-value pair of the data through cooperation with the background, and then instantiate the object through the class method (NSClassFromString ()).

2. Do you know runtime?

I didn't tell the interviewer that the messaging mechanism was messy. I felt that I was not very good at it. I just talked about some practical applications of runtime, and I felt that I was still doing well. After all, I used it several times in development, it will also dynamically set member variables (member variables are actually not allowed, but there are methods in the runtime header file. This involves the dynamic increase of static struct member variables, so it should not be implemented through the runtime method that is generally understood) and Method

3. Have you done positioning? If you have always refreshed the location on the background

I think the interview may mean something wrong, or it may be that I did make a mistake. After all, I am very bad at English and can't say anything about it, but I have done almost the same thing, you don't need to talk about positioning. coreLocation or Baidu SDK is nothing to say. Let's talk about code that can run for a long time after the program enters the background.

-(Void) applicationDidEnterBackground :( UIApplication *) application {[self beingBackgroundUnpdateTask];/* the code can be written here */[self defined];}-(void) beingBackgroundUnpdateTask {self. backgroundUpdateTask = [[UIApplication sharedApplication] usage: ^ {[self endBackgroundUpdateTask] ;}];}-(void) usage {[[UIApplication sharedApplication] endBackgroundTask: self. backgroundUpdateTask]; self. backgroundUpdateTask = UIBackgroundTaskInvalid ;}

In this way, the background will be refreshed repeatedly.

4. Do you know about YYModel or YYKit?

It means no. I have read the source code of some YYKit and never thought that the interview would ask the third-party framework. I basically didn't say anything about it.

5. Do you know MVVM?

There is nothing to say about this. I have to check a bunch of resources on the Internet and I will still be able to do it myself. Let's just say that I didn't ask too much.

6. RAC

Responsive function programming is not very familiar with the application scenarios of signal streams.

7. tableView Optimization

I talked about the dynamic computing height, interface data, and other methods and logic. I tried to perform manual calculation as much as possible. I also talked about drawRect and the manual cell drawing, but I also asked about YYKit from here, still unable to answer.

  

Related Article

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.