Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

Himenon/MusicButton

Repository files navigation

MusicButton

MusicButton ICON

UICollectionView

UICollectionViewFlowLayout

Subview / XIBファイル関連

UIView内のsubviewの重なり順を変更する

参考: https://ideacloud.co.jp/dev/addsubview_index.html

self.view.sendSubviewToBack(subview)

subViewの削除

subview.removeFromSuperview()

よくわからないメソッド

willRemoveSubview(subview)

AutoLayoutとアニメーション

アニメーション

UITableView / UICollectionView

曲の取得

Delegate / DataSourceの分離

Cellの更新

UICollectionViewCellのSubViewが初期化時に位置とサイズが変更できない問題

原因

  • AutoLayoutとの共存ができない。

対処方法

xibファイルに分離して読みだす。

その他テクニック

遅延時間を使う

参考: http://studio.beatnix.co.jp/develop/swift/delay/

let delay = 1.0 * Double(NSEC_PER_SEC) let time = dispatch_time(DISPATCH_TIME_NOW, Int64(delay)) dispatch_after(time, dispatch_get_main_queue(), { // 処理 })

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published