iOS: ์ค๋์ค ๋
น์, ์ฌ์, ์ ์ฅํ๊ธฐ
iOS: ์ค๋์ค ๋ น์, ์ฌ์, ์ ์ฅํ๊ธฐ
2021.07.06๊ฐ์ AVFoundation์ ์ด์ฉํด์ ์ค๋์ค๋ฅผ ๋
น์, ์ฌ์, ์ ์ฅํด๋ณด์. ์ฝ๋๋ฅผ ์์ฑํ๊ธฐ ์ ์ ๋จผ์ AVFoundation ์์ ์ค์์ ์ธ ๊ฐ์ง ํด๋์ค๋ฅผ ์ดํด๋ณธ๋ค. AVAudioSession AVAudioRecorder AVAudioPlayer AVAudioSession class AVAudioSession: NSObject An audio session acts as an intermediary between your app and the operating system—and, in turn, the underlying audio hardware. ์ค๋์ค ์ธ์
์ ์ฑ๊ณผ ์ด์ ์ฒด์ ์ฌ์ด์ ์ค๊ฐ์ ์ญํ ์ ํ๋ฉฐ ๊ธฐ๋ณธ ์ค๋์ค ํ๋์จ์ด ์ญํ ๋ ํฉ๋๋ค. ๋ชจ๋ iOS, tvOS, watchOS ์ฑ์๋ ๋ค์ ๋์์ผ๋ก..
iOS: ํ
์ด๋ธ๋ทฐ ์
ํฐ์น ํ, ๋ค๋ฅธ ๋ทฐ๋ก ์ด๋ํ ๋ค์ ๋ค์ ๋์์์ ๋ ํฌ์ปค์ค ์์ ๊ธฐ
iOS: ํ ์ด๋ธ๋ทฐ ์ ํฐ์น ํ, ๋ค๋ฅธ ๋ทฐ๋ก ์ด๋ํ ๋ค์ ๋ค์ ๋์์์ ๋ ํฌ์ปค์ค ์์ ๊ธฐ
2020.09.15์
์ ์ ํํด์ ๋ ๋ฒ์งธ ๋ทฐ๋ก ์ด๋ํ๋ค๊ฐ ๋ค์ ์ฒซ ๋ฒ์งธ ๋ทฐ๋ก ๋์์๋ ์
์ ํฌ์ปค์ค๊ฐ ๋จ์์๋ค. ์ฒ์์๋ ์๋์ ๊ธ์ ์ฐธ๊ณ ํ์ฌ ์ธํฐํ์ด์ค ๋น๋์ Selection ์ต์
์ None์ผ๋ก ๋ฐ๊พธ์ด์คฌ์๋๋ฐ, ์ด๋ฌ๋ฉด ์ด๋ ํ์ ๋์์๋ ํฌ์ปค์ค๊ฐ ๋จ์์์ง ์์ง๋ง, ๋ฌธ์ ๋ ํฐ์นํ ๋๋ ์์์ด ๋ณํ์ง ์๋๋ค๋ ๊ฑฐ๋ค. ์ด๊ฑด UX ์ธก๋ฉด์์ ์ ํฉํ์ง ๋ชปํ๋ค๊ณ ํ๋จํด์, ๋ค๋ฅธ ๋ฐฉ๋ฒ์ ์ฐพ์๋ดค๋ค. iOS: ํ
์ด๋ธ๋ทฐ ์
ํฐ์น ์ ํฌ์ปค์ค ๋จ๊ธฐ์ง ์๊ธฐ (TableViewCell SelectionStyle) ๋ฐ์์ผ: 2016.03.23 ํค์๋: UITableViewCell, Selection, selectionStyle ๋ฌธ์ : ํ
์ด๋ธ๋ทฐ์ ์
ํฐ์น ์, ํฌ์ปค์ค๋๋ฉด์ ๋ฐฐ๊ฒฝ์ด ํ์์ผ๋ก ์ค์ ๋๋ค. ๋ฐฐ๊ฒฝ๊ณผ ๋์ผํ ์ปฌ๋ฌ์ View๋ ๋ณด์ด์ง ์๊ฒ ๋๋๋ผ..
iOS: TableView.reloadSections(_:with:)
iOS: TableView.reloadSections(_:with:)
2020.09.14TableView.reloadSections(\_ sections: IndexSet, with animation: UITableView.RowAnimation) ํน์ ์น์
์ ๋ฐ์ดํฐ๋ฅผ Reloadํ๋ ๋ฉ์๋ sections์ ๋ค์ด๊ฐ๋ ๋งค๊ฐ๋ณ์๋ ๋ฒ์๋ฅผ ๋ํ๋๋๋ฐ, ๋ง์ฝ ์ฒซ๋ฒ์งธ ์น์
๋ง Reload ํ๊ณ ์ถ๋ค๋ฉด, TableView.reloadSections(IndexSet(0...0), with: .automatic) ๋ฒ์๋ฅผ 0๋ถํฐ 0๊น์ง ํฌํจ์ผ๋ก ์ค์ ํด์ฃผ๋ฉด ๋๋ค. ์ฒซ๋ฒ์งธ๋ถํฐ ๋๋ฒ์งธ ์น์
๊น์ง Reload ํ๊ณ ์ถ๋ค๋ฉด, TableView.reloadSections(IndexSet(0...1), with: .automatic) StartIndex...EndIndexํํ๋ก ์์ฑํด์ฃผ๋ฉด ๋๋ค. ...์ ์ฌ์ฉํ ๊ฒฝ์ฐ E..