<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">You’d have to add @objc(updateSearchResultsForSearchController:) to it.</div><div class=""><br class=""></div><div class="">If you’re having issues in other places of your code, you can easily get the ObjC selector form by looking into the online docs, e.g.:</div><div class=""><a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISearchResultsUpdating_ClassRef/index.html" class="">https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISearchResultsUpdating_ClassRef/index.html</a></div><div class=""><br class=""></div><div class="">…and choose Objective-C as your preferred language in the top panel.</div><div class=""><br class=""></div><div class="">While this works well enough for required protocol methods, the bigger problem is with optional methods, as the compiler won’t complain if it doesn’t find a matching Swift method, it just won’t ever be called.</div><div class=""><br class=""></div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 31 Mar 2016, at 00:34, Charles Lane &lt;<a href="mailto:clane_47@bellsouth.net" class="">clane_47@bellsouth.net</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I have the same problem except it’s with the UISearchResultsUpdating protocol. I read Jordan’s reply with the workaround but I’m not familiar enough with OBJC to implement it. Could you possibly show me the correct form for the following:<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">func</span><span style="font-variant-ligatures: no-common-ligatures" class=""> updateSearchResults(for searchController: </span><span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">UISearchController</span><span style="font-variant-ligatures: no-common-ligatures" class="">) {</span></div><div style="margin: 0px; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></div><div style="margin: 0px; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; }</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">How do I format that using the ‘objc’ attribute to make it satisfy the protocol requirements? I know that Apple will fix this soon, but I’m curious…..</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Thanks,</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Chuck Lane</span></div></div></div></blockquote></div><br class=""></body></html>