개발일지) FLO - Music App 1일차 (10.17)
프로그래머스 과제관 오픈 이벤트 | 프로그래머스
개발자 채용 프로그램(데브매칭/챌린지)에 출제된 과제관 테스트 문제를 풀고 프로그래머스 프로필에 내 코드를 첨부해보세요~!
programmers.co.kr
수많은 서류탈락,,,
재미없는 알고리즘,,,
을 잠시 놔두고,,, 잠시 취미 작업을 하려고한다...
취업이랑 관계 없지만,,, 그냥 AVFoundation을 공부 할 수 있는 좋은 계기라 생각해서,,,
구현 내용)
1. SplashView
2. URL
3. Round View with Shadow
어려웠던 내용 )
1. Round View with Shadow :
단순히 UIImageView에서 round View with Shadow를 구현 할 수 없었다.
따라서 일반적인 View 밑에 ImageVIew를 만들고
hururuek-chapchap.tistory.com/24?category=909178
IOS) UIView에 Corner Radius와 Shadow를 적용하기
안녕하세요!!! 후르륵짭짭 입니다. 위에 영상을 보면 초록색 뷰에 그림자와 각진 부분이 깍인 것을 확인 할 수 있습니다 오늘은 이것에 대해서 자세히 알아 보려고 합니다. 두가지 방법이 있습니
hururuek-chapchap.tistory.com
예전에 만들었던 내용을 참고했다.
(View에도 Corner radius를 적용하고 ImageView에도 corner radius를 적용해야 한다.)
stackoverflow.com/questions/41475501/creating-a-shadow-for-a-uiimageview-that-has-rounded-corners
Creating a shadow for a UIImageView that has rounded corners?
I am trying to create an ImageView that has rounded corners and a shadow to give it some depth. I was able to create a shadow for the UIImageView, but whenever I added the code to also make it have
stackoverflow.com
2. Custom View를 StoryBoard로 생성 할때 :
반드시 @IBDesignalbe로 만들어줘야한다.
그게 아니면 init(frame:)으로 해줘야하는데,,, 그러면 Autoradius를 다시 적용해줘야 해서
이번 개발의 방향과 적절치 않았다.
3. target이 IOS 13 보다 낮은 경우 :
var window: UIWindow? = nil
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
if #available(iOS 13.0, *){
print("Call in SceneDelegate")
}
else{
self.window = UIWindow(frame: UIScreen.main.bounds)
let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
window?.rootViewController = storyBoard.instantiateViewController(withIdentifier: "SplashView")
window?.makeKeyAndVisible()
}
return true
}
이렇게 Appdelegate에 위에 처럼 시작하는 뷰를 작성해줘야한다.
IOS 13.0 이상일 경우에는 Scene delegate에서 작동 되는데, 초기뷰를 체크 해주면 Scene delegate에서 이런 작업을 필요없이 할 수 있다.
또한 withIdentifier 같은 경우는 IOS 13 버전에서만 사용가능하고
Identfier는 IOS 13 이상에서 사용가능 하다.
구현할 내용 )
AVFoundation으로 음악 재생에 대해 공부해봐야겠다 ㅎㅎㅎ