BAPlayerSearchViewController - HelloMocca/BattleAppforiOS GitHub Wiki

SuperClass: UISearchDisplayController

Description

์„ ์ˆ˜๋ฅผ ๊ฒ€์ƒ‰ํ•˜์—ฌ tableview์— ๊ฒฐ๊ณผ๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ๊ธฐ๋Šฅ์„ ๋‹ด๋‹น.
์„ ์ˆ˜ ์„ ํƒ์‹œ ๋ฐœ์ƒํ•˜๋Š” ์ด๋ฒคํŠธ ์ฒ˜๋ฆฌ์— ๋Œ€ํ•œ PlayerTableSelectDelegate ํ”„๋กœํ† ์ฝœ์ด ์„ ์–ธ๋˜์–ด ์žˆ๋‹ค.

Specification

  1. ๊ฒ€์ƒ‰์ฐฝ์€ ๋„ค๋น„๊ฒŒ์ด์…˜๋ฐ”์— ์œ„์น˜ํ•˜๋„๋ก ํ•œ๋‹ค.
  2. ๊ฒ€์ƒ‰๊ฒฐ๊ณผ tableView์˜ Cell์€ PlayerCell์„ ์‚ฌ์šฉํ•œ๋‹ค.
  3. Cell ์˜ Height๋Š” 80์œผ๋กœ ํ•œ๋‹ค.
  4. Cell ์‚ฌ์ด์˜ Separate line์€ ๋ณด์ด์ง€ ์•Š๋„๋ก ํ•œ๋‹ค.
  5. Cell ์„ ๊ตฌ๋ถ„ํ•˜๊ธฐ ์œ„ํ•ด ํ™€์ˆ˜ Index์˜ Cell๊ณผ ์ง์ˆ˜ Index์˜ Cell์€ ๊ฐ๊ฐ ๋‹ค๋ฅธ ์Œ์˜์„ ๊ฐ€์ง€๋„๋ก ํ•œ๋‹ค.
  6. ๊ฒ€์ƒ‰๊ฒฐ๊ณผ ์„ ์ˆ˜์˜ ์ˆซ์ž๊ฐ€ 10๋ช… ์ด์ƒ์ผ ๊ฒฝ์šฐ ์ดˆ๊ธฐ 10๋ช…๊นŒ์ง€๋งŒ ์ถœ๋ ฅํ•œ๋‹ค.
  7. More Player ๋ฒ„ํŠผ์„ ํ†ตํ•ด ๋‹ค์Œ 10๋ช…์˜ ์„ ์ˆ˜๋ฅผ ์ถ”๊ฐ€๋กœ ์ถœ๋ ฅํ•œ๋‹ค.
  8. ๋”์ด์ƒ ์„ ์ˆ˜๊ฐ€ ์—†์„ ๊ฒฝ์šฐ ๋ฒ„ํŠผ์ด ์‚ฌ๋ผ์ง€๋„๋ก ํ•œ๋‹ค.
  9. ๊ฒ€์ƒ‰๊ฒฐ๊ณผ๊ฐ€ ์—†์„๊ฒฝ์šฐ Player Not Found๋ฅผ ํ‘œ๊ธฐํ•ด์ค€๋‹ค.

Protocol

Properties

UIViewController Override methods

UITableViewController Override methods

UISearchDisplayController methods

Setup view methods

Data request methods

Data parsing methods

Event handle methods