I am currently working on using a Microsoft Exchange API for an application that allows me to look up a user based on typing in part of a name. I wanted to know how to link the search bar so that it displays related terms. Below I posted my code/ attempts
func HTTPPost(aaplication: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {
var request = NSMutableURLRequest(URL: NSURL(string: "http://mail.SAP.com/EWS/Exchange.asmx")!)
var session = NSURLSession.sharedSession()
request.HTTPMethod = "Post"
return true
}
@IBOutlet weak var SearchBar: UISearchBar!
I also have this:
HTTPGet("https://mail.SAP.com/EWS/Exchange.asmx") {
(data: String, error: String?) -> Void in
if error != nil {
println(error)
}
else {
println(data)
}
}
Here is some sample code to implement a search bar to you IOS app.