Skip to content

Instantly share code, notes, and snippets.

View tnmendes's full-sized avatar
:octocat:

Tiago Mendes tnmendes

:octocat:
  • tnmendes
  • tnmendes
View GitHub Profile
@derrickshowers
derrickshowers / gist:80fb450490ff03e6e274
Created April 18, 2015 23:54
Delegation Design Pattern Using Swift
import UIKit
protocol YelpRequestDelegate {
func getYelpData() -> AnyObject
func processYelpData(data: NSData) -> NSData
}
class YelpAPI {
var delegate: YelpRequestDelegate?