migrate swift4.0 to swift4.2

swift4.0 から swift4.2 への修正内容メモしておく

UIKeyboardWillShow

UIResponder.keyboardWillShowNotification

UIKeyboardWillHide

UIResponder.keyboardWillHideNotification

UIControlEvents

UIControl.Event

UIEdgeInsetsInsetRect(rect, padding)

rect.inset(by: padding)

UIViewContentMode

UIView.ContentMode

addChildViewController

addChild

UIControlContentHorizontalAlignment

UIControl.ContentHorizontalAlignment

UITextBorderStyle

UITextField.BorderStyle

bringSubview(toFront: ***)

bringSubviewToFront(***)

UIAlertControllerStyle

UIAlertController.Style.alert

UIAlertActionStyle

UIAlertAction.Style

UIKeyboardFrameEndUserInfoKey

UIResponder.keyboardFrameEndUserInfoKey

UIActivityIndicatorViewStyle

UIActivityIndicatorView.Style

UITableViewCellStyle

UITableViewCell.CellStyle

UIImagePickerControllerSourceType

UIImagePickerController.SourceType

NSNotification.Name.UITextViewTextDidChange

UITextField.textDidChangeNotification

UIDatePickerMode

UIDatePicker.Mode

UIKeyboardFrameEndUserInfoKey

UIResponder.keyboardFrameEndUserInfoKey

popupViewController.didMove(toParentViewController: self)

popupViewController.didMove(toParent: self

UIApplicationLaunchOptionsKey

UIApplication.LaunchOptionsKey

NSAttributedStringKey

NSAttributedString.Key

func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])

func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any])

UIImagePickerControllerImageURL

UIImagePickerController.InfoKey.imageURL

以上です