上周末請假去了xmly公司面試(此處和諧)即寡,音頻獨角獸公司想必我不說你也知道是哪一家伟件,雖然只是抱著學習的態(tài)度去試一試,但是準備了一周以后還是被虐了艰猬。下面說一下面試過程和感受横堡。
- 地理位置:張江高科,騎車10分鐘
- 辦公室環(huán)境:工位排排坐冠桃,走廊很多白板和寫tip的紙條
- 面試流程:填個人信息命贴,筆試大概一小時,面試食听,二面胸蛛。后面可能還有不過我已經(jīng)掛了/(ㄒoㄒ)/~~
- 題型和程度:偏基礎,筆試題英語碳蛋,內(nèi)容廣泛涉及底層。
筆試題
Ⅰ1.What is protocol, and category ? What is the difference betweem implementing a category and inheritance?
1.什么是協(xié)議省咨,類別肃弟?類別和繼承實現(xiàn)的區(qū)別是什么?
2.How do touch event and respond chain deliver in iOS
application?
2.觸摸的事件鏈和響應鏈在app里是怎么傳遞的零蓉?
3.List some design patterns in iOS SDK. How do you use them?
3.列出在iOS SDK中的設計模式笤受,你是怎么使用它們的?
4.What is delegate, and notification?What are differences between them?
4.什么是委托敌蜂,通知箩兽?他們之間的區(qū)別是什么?
5.How to store data in iOS application?Can applicationstore persistent data in iOS device,even if the application is deleted.
5.如何在iOS app存儲數(shù)據(jù)?可以在iOS app持久存儲數(shù)據(jù)么,即使應用程序刪除章喉。
6.Give an example of using KVC to set a value.
6.舉個例子,使用KVO設置值汗贫。
7.What are blocks and how are they used?
7.block是什么?怎么用秸脱?
8.Do you know the iOS memory management policy?What about autorlease pool?ARC is the same as the Garbage Collection(GC) strategy?
8.你了解iOS的內(nèi)存管理機制嗎落包?什么是autorlease pool?ARC和GC有什么異同摊唇?
9.Talk about multiple threads programming and concurrency programming in iOS.Have you ever used them in your projects?if yes, can you briefly describe how did you use them.
9.簡述多線程和并發(fā)咐蝇。你曾經(jīng)用在你的項目嗎?如果有,簡要描述你如何使用它們。
ⅡWrite a module ,which include two interface functions
a)create the link list
b)reverse the link list
The node is defined as follow:
typedef struct Node{
int value;
struct Nodenext;
}XMNode,PXMNode;
創(chuàng)建鏈表巷查,翻轉(zhuǎn)鏈表
Ⅲ As following questions, you should think to design for easily used by others.
I design an audio player framework ,which has these following functions:
1.Buffer the audio data file,online play and offline play.
2.The player base functions (play,next,pre,pause etc.)
創(chuàng)建播放器
部分面試題:
1.sdwebimage清除緩存是耗時操作嗎有序?根據(jù)日期清除緩存是怎么操作的?緩存日期存在哪岛请?(文件頭)
2.沙盒結(jié)構(gòu)
3.類別怎么添加屬性旭寿,和原類重名的兩個category怎么固定實現(xiàn)順序?如果一個category是第三方庫的話呢崇败?
4.tableview上切圓角最佳性能的方法是什么许师?
5.單例為什么不用判斷對象為nil的方式創(chuàng)建
6.離屏渲染的原因
7.怎么實現(xiàn)webview里點開圖片左右滑動預覽(在不和后端約定字段的情況下)
8.事務的好處
9.下劃線開頭的實例變量調(diào)用getter/setter方法嗎
10.怎么給category添加屬性?category添加類方法的實質(zhì)是什么,添加完方法之后想調(diào)用原來類的方法怎么做微渠?
11.事件鏈和響應鏈是怎么傳遞的搭幻?
12.MRC中category的釋放
13.webview自動行高設置
先在此列舉,待我總結(jié)答案之后再更??