Today, early in the morning to interview, the company is close to my home, spent one hours to walk, also on the way to print resumes, rationale, to the company interview officer or something is good, give me a lot of knowledge, receiving is full of, summed up today all encountered problems, adjust the state of adjustment.
1 when the number of item that needs custom Tabbar is variable
Here originally wanted to say that the custom tabbar, but the estimate should be the runtime under the class dynamic creation method, and then simply said runtime, do not know whether the answer is good, but the principle is not wrong. By working with the background, you get the class name in the key-value pair in the data, and then instantiate the object by using the class method (Nsclassfromstring ()).
2, do you know the runtime?
And the interviewer said that the message mechanism what a mess, feel no big egg use, said the runtime of some practical applications, self-feeling still do, after all, they have used a few times in development, will also dynamically set member variables (member variables are actually not possible, but in the runtime header file does have a method , this involves the dynamic increase of static struct member variables, so it should not be implemented by conventional understanding of the runtime method) and methods
3, do the positioning, if you always refresh the location in the background
This I feel maybe the interview a little misunderstanding I mean, it may be I did say wrong, after all, my English sucks, the method will knock not to say, but also did the same, the positioning is needless to say, there is no corelocation or Baidu SDK, said if the program into the background long running code.
-(void ) Applicationdidenterbackground: (UIApplication *) application {[Self beingbackgroundunpdatetask]; /* */ [self endbackgroundupdatetask];} -(void ) Beingbackgroundunpdatetask { Self.backgroundupdatetask = [[UIApplication sharedapplication] beginbackgroundtaskwithexpirationhandler:^< Span style= "color: #000000;" >{[self endbackgroundupdatetask]; }];} -(void = Uibackgroundtaskinvalid;}
So the backstage will be refreshed repeatedly.
4, know Yymodel, or Yykit?
Said really do not, have seen some Yykit source code, also did not think the interview will ask the tripartite framework, basically did not say what.
5, understand MVVM, talk about MVVM.
This basic also has nothing to say, on-line a check a bunch, oneself still will some of, simply say, did not ask too much.
6, RAC
Response function programming, for the application of signal flow, said some application scenarios, not to say the framework is not very familiar.
7, TableView optimization
said the dynamic computation height, through the interface data and so on, the dispersion method logic, as far as possible manual calculation, also said DrawRect, said the manual drawing cell, but asked the yykit from here, or answer not come up.
iOS Development--Interview