2020-02-10から1日間の記事一覧
デリゲート処理はweakで宣言しておかないと、メモリーリークを起こす可能性がある。 //変更前 protocol CommentDelegate { func commentOptionTapped(comment: Comment) } private var delegate: CommentDelegate //変更後 protocol CommentDelegate: class …
デリゲート処理はweakで宣言しておかないと、メモリーリークを起こす可能性がある。 //変更前 protocol CommentDelegate { func commentOptionTapped(comment: Comment) } private var delegate: CommentDelegate //変更後 protocol CommentDelegate: class …