うちのいぬ Tech Blog

Tech Blog of Uchinoinu/My dog

2016-09-07から1日間の記事一覧

Back Button of NavBar Tapped when Incrementally Searching using SearchBarNavigationBar, search function cannot act correctly

Environment Xcode 7.3.1 iOS 8+ Situation Implement Incremental Search in TableViewController using SearchBar Input search word Leave by back button of nav bar, not x button or cancel button Search cannot move correctly. Initial View of Sea…

SearchBarでのインクリメンタルサーチ時にNavigationBarのBack Buttonで戻って再度検索をすると正常に動かない件

環境 Xcode 7.3.1 iOS 8+ 状況 SearchBarを使ってTableViewControllerで、インクリメンタルサーチを実装 検索ワードを入力 xボタンやcancelボタンではなく、戻るボタンで離脱 再度検索をしようとしたら、正常に動かなかった 検索画面の初期状況 検索バーにFi…

Calling and configuring UISearchController in viewWillAppear to implement Search View, SearchBar layout became bad

Environment Xcode 7.3.1 iOS 8,9 What's happened? Collapsed layout of SearchBar Search View Input text in SearchBar Search Result Search Target Data can be divided to some layer, so use section and side index list to show them in TableView …

検索機能を実装する際に、UISearchControllerをviewWillAppearで呼んだら、ダメな感じになった

環境 Xcode 7.3.1 iOS 8,9 何が起きたか 検索バーのレイアウトが崩れる 検索画面 検索バーにテキスト入力 検索結果 検索対象のデータが幾つかの階層に分けられるので、sectionで分けたり、サイドにsectionに応じたindexを表示させたりしています。 検索結果…