스위프트 면접 예상문제
@ [UIImage imageNamed]와 [UIImage initWithContentsOfFile]의 차이
imageNamed: imageNamed cache's your images and you lose control over the memory - there's no guarantee that releasing the object will actually release the image but does provide faster loading of images second time around as they are cached. If you are using Interface Builder, and setting the image in Image View Attributes, that is also equal to imageNamed method. The image will be cached immediately when the app is ran
imageWithContentsOfFile : imageWithContentsOfFile does not cache images and is more memory friendly however as it does not cache images and they are loaded much slower. imageWithContentsOfFile: requires you to put the full path. I don't see why imageNamed: wouldn't be recommended, besides the fact that you can't access files outside of the application bundle.
:> 인터페이스 빌더에 UIImageView를 추가하고 이미지 파일을 설정하게 되면 내부적으로 imageNamed를 사용
@ 개인프로젝트와 스토어 경험( 리젝사유:격었던 문제와 해결했던 방법에 대한 얘기)
@ 디버깅은 어떤식으로 주로 하나? 디버거사용 or print 사용
@ 멀티랭귀지 다국어경험 여부
@가로모드 대응 해본 경험이 있는가?(오토레이아웃으로 했는가, 디바이스별로 대응했는가?)
@ cocoapods 사용하나? 주로 어떤 사이브러리 사용하는가? alamofire사용해봤나? 모델은 어떻게 생성해보았는가?
* swift 경험
@ swift vs objc 어떤걸 선호?
@ swift extension 사용경험
@ Firebase들어보았는가? 관심갔던 부분은 어디인가?
@ protocol 사용경험. 언제 사용해봤나?
@ swift공부는 어디서 하나? 최신 트랜드는 어디서?
@ swift 2.0으로 공부했나?
- 3.0에서 사용하지 말아야 할것은?
#selector(test), c style for loop
@ Closure 익명함수?
- Functional Language 에서의 함수는 OOP 에서의 객체와 동일하다고 보시면 됩니다
- 코드는 이전 강좌(04회)에서 설명했기 때문에 생략하겠습니다
1) 함수내에서 함수를 정의할 수 있습니다
2) 함수의 인자로 함수를 받을 수 있습니다
3) 함수의 리턴값으로 함수를 넘길 수 있습니다
4) 변수에 함수를 입력할 수 있습니다 (이 말은 함수도 하나의 객체로써 포인터를 가진다는 의미입니다)
------------
제일많이 화냈던적?
10년뒤 5년뒤 뭐할것 같나?
과에 몇명이였고 몇등정도 했었나?
잘짜여진 코드란 무엇이라고 생각하는가?
신규 vs 유지보수 당신의 스타일은?