Removed Deprecation warnings, Added Delegations and more

Removed Deprecation warnings. 
Modified the TextFieldViewController.swift, so that whenever the users taps on the empty space, the keyboard hides itself. In that way, the user can test out other textFields as well.