Resolved Swift: How do I make UIViewController implement delegate protocol?


i'm objective-c developer who's decided use swift project. in interface builder, i've set view controller delegate search bar. now, want know how make view controller implement search bar delegate protocol.

resolved: quick google search revealed this article, says implement protocol, this:
code:
  class viewcontroller:uiviewcontroller,insert protocol name  {  }  
 

indeed
implement required methods in viewcontroller , pass viewcontroller class containing protocol keyword using prepareforsegue , segue.destinationviewcontroller.delegate = self
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Pasco WA. Cops Killing A Homeless Man while running away

Gold Apple Watch Buyers to Get Special Purchasing Experience With 30 Minute Appointments

Transferring URLS