BAPlayerSearchViewController - HelloMocca/BattleAppforiOS GitHub Wiki
SuperClass: UISearchDisplayController
Description
์ ์๋ฅผ ๊ฒ์ํ์ฌ tableview์ ๊ฒฐ๊ณผ๋ฅผ ์ถ๋ ฅํ๋ ๊ธฐ๋ฅ์ ๋ด๋น.
์ ์ ์ ํ์ ๋ฐ์ํ๋ ์ด๋ฒคํธ ์ฒ๋ฆฌ์ ๋ํ PlayerTableSelectDelegate ํ๋กํ ์ฝ์ด ์ ์ธ๋์ด ์๋ค.
Specification
- ๊ฒ์์ฐฝ์ ๋ค๋น๊ฒ์ด์ ๋ฐ์ ์์นํ๋๋ก ํ๋ค.
- ๊ฒ์๊ฒฐ๊ณผ tableView์ Cell์ PlayerCell์ ์ฌ์ฉํ๋ค.
- Cell ์ Height๋ 80์ผ๋ก ํ๋ค.
- Cell ์ฌ์ด์ Separate line์ ๋ณด์ด์ง ์๋๋ก ํ๋ค.
- Cell ์ ๊ตฌ๋ถํ๊ธฐ ์ํด ํ์ Index์ Cell๊ณผ ์ง์ Index์ Cell์ ๊ฐ๊ฐ ๋ค๋ฅธ ์์์ ๊ฐ์ง๋๋ก ํ๋ค.
- ๊ฒ์๊ฒฐ๊ณผ ์ ์์ ์ซ์๊ฐ 10๋ช ์ด์์ผ ๊ฒฝ์ฐ ์ด๊ธฐ 10๋ช ๊น์ง๋ง ์ถ๋ ฅํ๋ค.
- More Player ๋ฒํผ์ ํตํด ๋ค์ 10๋ช ์ ์ ์๋ฅผ ์ถ๊ฐ๋ก ์ถ๋ ฅํ๋ค.
- ๋์ด์ ์ ์๊ฐ ์์ ๊ฒฝ์ฐ ๋ฒํผ์ด ์ฌ๋ผ์ง๋๋ก ํ๋ค.
- ๊ฒ์๊ฒฐ๊ณผ๊ฐ ์์๊ฒฝ์ฐ Player Not Found๋ฅผ ํ๊ธฐํด์ค๋ค.