I want to change my view's frame when the keyboard shows

change my view website
change my view podcast
reddit change my mind'' meme
change my view meme
reddit debate
change reddit view to mobile
reddit news

Here is my function for adding an observer

func subscribeToKeyboardNotifications() {
    NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow), name: .UIKeyboardWillShow, object: nil)

but .UIKeyboardWillShow is giving me an error

'UIKeyboardWillShow' has been renamed to 'UIResponder.keyboardWillShowNotification'

Replace 'UIKeyboardWillShow' with 'UIResponder.keyboardWillShowNotification'

but when I replace it

func subscribeToKeyboardNotifications() {
    NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow), name: .UIResponder.keyboardWillShowNotification, object: nil)

I get this error

Type of expression is ambiguous without more context

Without a dot

selector: #selector(keyboardWillShow), 
name: UIResponder.keyboardWillShowNotification, object: nil)

Change My View: Why Our Best Hope for Civil Discourse Is on , At once I realized: I dearly wanted to have my opinion changed. Support our journalism. Support our journalism. The news you need to know on  Click View > Reset View. See screenshot: A warning dialog box will come out. Click the Yes button in the dialog box. Then the selected folder is reset to its original view at once. If you want to apply this view to other folders, please go on the following steps. 3. Click View > Change View > Apply Current View to Other Mail Folders on the View

let notificationCenter = NotificationCenter.default

notificationCenter.addObserver(forName: UIResponder.keyboardWillShowNotification, object: nil, queue: nil) { (notification) in
                self.keyboardWillShow(notification: notification)
notificationCenter.addObserver(forName: UIResponder.keyboardWillHideNotification, object: nil, queue: nil) { (notification) in
                self.keyboardWillHide(notification: notification)

Change My View (CMV), Change My View (CMV). r/changemyview I'd also like to say that Beastars, whole extremely good in my opinion, is a really bad example of an anime that you  Once you have the view set, you can make it the default view for every folder you open from now on. To do so, click the File tab in File Explorer, then click on the "Change folder and search options" option. The Folder Options window will appear.

Just import module UIKit because UIResponder is part of UIKit not Foundation module


import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {

    public func addObservers() {
        NotificationCenter.default.addObserver(self, selector: #selector(handleKeyboardWillShow), name: UIResponder.keyboardWillShowNotification, object: nil)

    @objc func handleKeyboardWillShow(_: Notification) {
        // Here handle keyboard

r/changemyview, Change My View (previously) is a wonderful subreddit founded by a is an open​-minded willingness to have your views changed, and where  It is acting on these goals that enable you to achieve your dreams. Remember your goals may change. Always be flexible with setting and achieving your goals as things in life change and your goals need to reflect these changes. It’s the small steps that you take that create the momentum for change to happen in your life. 4. Let Go of Your Regrets

I have used this, and working perfectly fine

NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShowOrHide(notification:)), name: NSNotification.Name.UIKeyboardWillShow, object: nil);

Reddit's wonderful "Change My View" forum launches its own , This vision seems like the stuff of technology fantasy; spend five minutes on the platforms that host most of the web's political arguments, and you'  If you want to change your life in the most positive sense, get comfortable with being out of your comfort zone. When you’re learning something new, you’ll bump into the walls of your comfort zone. Your spirit yearns for freedom. It’s when you put yourself into a little box that your spirit feels the need to rebel.

Change My View, Reddit is known for a handful of communities that have taken on a life of The creator of the popular r/changemyview subreddit, Kal Turnbull,  The standard way to view a document is called Print Layout view. It’s the view shown when Word normally starts. A virtual page appears on the screen, with four sides and text in the middle. What you see on the screen is pretty much what you’ll see in the final results, whether printed or published as an electronic document. The other views are.

Change My View Does Not Allow Rudeness or Hostility, MALONE: Some real examples from the site are views like you should have to pass a test to vote, or if you date outside your race you are a race  Choose your inbox layout. On your computer, go to Gmail. In the top left, point to Inbox, then click the Down arrow . Select Default, Important first, Unread first, Starred first, Multiple inboxes, or Priority Inbox. Learn about the inbox layout options. Some inbox styles have more settings and options you can change.

Reddit's 'Change My View' community becomes a dedicated site , However he does have one standout moment of that day in January 2013. Kal started a discussion group, or subreddit, on the social media site 

  • You need to remove the . before UIResponder. stackoverflow.com/questions/52316676/…
  • Possible duplicate of Type 'NSNotification.Name' has no member 'keyboardDidShowNotification'
  • And you need to import UIKit module not Foundation
  • Second solution won't work I guess (Type 'NSNotification.Name?' has no member 'keyboardWillShowNotification').
  • @AndréSlotta actually not tried it but op will give feedback
  • @Sh_Khan Yes second one didn't work
  • It works but the or part doesn't thanks a lot anyway
  • It doesn't in Swift 4.2