I'm an Objective-C developer who's decided to use Swift for another project. In Interface Builder, I've set up my view controller to be a delegate for a search bar. Now, I want to know how to make my view controller implement the search bar delegate protocol.
RESOLVED: A quick Google search revealed this article, which says that to implement a protocol, you just do this:
RESOLVED: A quick Google search revealed this article, which says that to implement a protocol, you just do this:
Code:
class ViewController:UIViewController,insert protocol name
{
}