• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UISearchController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UISearchController


  • Subject: Re: UISearchController
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 14 Apr 2015 17:57:04 +0700

> On 14 Apr 2015, at 03:52, Chris Ridd <email@hidden> wrote:
>
>
>> On 13 Apr 2015, at 12:18, Gerriet M. Denkmann <email@hidden> wrote:
>>
>> Using Xcode Version 6.3 (6D570) I added a Search Bar and Search Display Controller into a project with Deployment Target = 8.3.
>> Which turns out to be of class UISearchDisplayController.
>>
>> But it seems that UISearchDisplayController is deprecated starting in 8.0, replaced by UISearchController
>>
>> So: How to add a Search Bar with a UISearchController?
>
> The things you see in Interface Builder are a red herring, ignore them IMO.
>
> You need to create the UISearchController in code (e.g. in viewDidLoad). It creates the UISearchBar object, which you then typically set as the table header view.

There is a sample project TableSearchwithUISearchController which does this (created in code, not in Xcode).

Gerriet.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: UISearchController
      • From: email@hidden
References: 
 >UISearchController (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: UISearchController (From: Chris Ridd <email@hidden>)

  • Prev by Date: Re: XCode 6.3 Swirling TechniColor Pizza of Death
  • Next by Date: What's actually new in Xcode 6.4 beta?
  • Previous by thread: Re: UISearchController
  • Next by thread: Re: UISearchController
  • Index(es):
    • Date
    • Thread