Upgrade to Pro — share decks privately, control downloads, hide ads and more …

UISearchBarとの付き合い方

7ddcca09c00a2744b983974225447d19?s=47 Sho Ikeda
November 21, 2017

 UISearchBarとの付き合い方

関西モバイルアプリ研究会 in 関東での発表資料です #関モバ

https://kanmoba.connpass.com/event/70685/

7ddcca09c00a2744b983974225447d19?s=128

Sho Ikeda

November 21, 2017
Tweet

Transcript

  1. UISearchBar ͱͷ෇͖߹͍ํ @ikesyo ؔ੢ϞόΠϧΞϓϦݚڀձ in ؔ౦ 2017-11-21 Tue #ؔϞό

  2. @ikesyo • ͍͚͠ΐʔʗ஑ా ᠳ • ͸ͯͳ@ژ౎ • https://twitter.com/ikesyo • https://github.com/ikesyo

  3. UISearchBar

  4. UISearchBar https://developer.apple.com/ios/human-interface-guidelines/bars/search-bars/

  5. UISearchBar • tableView.tableHeaderView = serachBar • navigationItem.titleView = searchBar •

    navigationItem.serachController = searchController • ” NEW in iOS 11!
  6. tableView.tableHeaderView

  7. tableView.tableHeaderView

  8. navigationItem.titleView

  9. navigationItem.titleView (iOS 10)

  10. navigationItem.titleView (iOS 11)

  11. navigationItem.titleView (iOS 11) • എܠ৭ • ߴ͕͞େ͖͍

  12. !

  13. navigationItem.serachController (iOS 11)

  14. navigationItem.serachController (iOS 11)

  15. navigationItem.serachController (iOS 11)

  16. !

  17. navigationItem.serachController (iOS 11) searchController.searchBar.backgroundColor = someColor

  18. !

  19. Change searchBar's backGroundColor • swift - UISearchController iOS 11 Customization

    - Stack Overflow if let textField = searchBar.value(forKey: "searchField") as? UITextField { textField.textColor = UIColor.blue if let backgroundView = textField.subviews.first { // Background color backgroundView.backgroundColor = UIColor.white // Rounded corner backgroundview.layer.cornerRadius = 10; backgroundview.clipsToBounds = true; } }
  20. !

  21. ❓ How to Be Happy with UISearchBar ❓

  22. !

  23. ! Happy Search Life!! !

  24. Thank you❗" Sho Ikeda @ikesyo