강의

멘토링

커뮤니티

Inflearn Community Q&A

dooridom1545's profile image
dooridom1545

asked

[Apple Official Textbook] Introduction to Creating iOS Apps

Adaptive User Interfaces

소리 안나는 현상

Written on

·

308

0

SimpleSound 인스턴스가 스택 변수이므로 deinit()이 빨리 호출됨.

전역으로 선언 필요

iosswift

Answer 1

0

codershigh님의 프로필 이미지
codershigh
Instructor

안녕하세요, dooridom 님.

먼저 피드백과 해결책까지 올려주셔서 감사합니다. 

말씀하신대로 전역으로 선언하거나 뷰 컨트롤러 레벨에서 선언해야 합니다.

관련 내용 동영상 아래부분에 설명되어 있습니다. 

링크 올려드립니다.

https://www.inflearn.com/questions/22470

dooridom1545's profile image
dooridom1545

asked

Ask a question