Skip to content

Instantly share code, notes, and snippets.

@Pasanpr
Created January 31, 2017 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Pasanpr/bb0a6b99e9eb43f68ce049476784fe9a to your computer and use it in GitHub Desktop.
Save Pasanpr/bb0a6b99e9eb43f68ce049476784fe9a to your computer and use it in GitHub Desktop.
// In viewDidLoad()
NotificationCenter.default.addObserver(self, selector: #selector(ViewController.keyboardWillHide(_:)), name: .UIKeyboardWillHide, object: nil)
func keyboardWillHide(_ notification: Notification) {
textFieldBottomConstraint.constant = 40
UIView.animate(withDuration: 0.8) {
self.view.layoutIfNeeded()
}
}
@MohammadArnauti
Copy link

Hi, How are you Pasan i am Mohammed Arnauti one of your students, thank you for providing us with useful and rich explanations in Tiraeus.

I have a question to create an application but I have encountered an obstacle and i need your help, the idea of application is about structural analysis in Civil Engineering (my studies in college) The forces and loads on the beam, and the beam have different lengths. The question is:
how can I to know the Compiler for the length for what i need, in another meaning I want to create a ruler in the interface where I can put forces at different distances

screen shot 2018-03-04 at 3 15 15 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment