 	func searchDictionary()
 	{
 		// Check if dictionary contains typed word
-		let searchText = searchBar.text
+		let searchText = self.searchBar.text
 		if UIReferenceLibraryViewController.dictionaryHasDefinitionForTerm(searchText)
 		{
 			// Remove the existing dictionary view controller, if it exists

	
	func searchBarTextDidEndEditing(searchBar: UISearchBar)
	{
		searchDictionary()
	}
	
	func searchBarSearchButtonClicked(searchBar: UISearchBar)
	{
		// Hide keyboard
		searchBar.resignFirstResponder()
	}
}


	override func viewDidAppear(animated: Bool)
	{
		// Increase size of font and height of search bar
		for subview in findAllSubviews(self.searchBar)
		{
			if subview is UITextField
			{
				let textField = subview as UITextField
				textField.font = UIFont(name: "Helvetica Neue", size: 24)
				textField.bounds.size.height = 88
			}
		}
