Help with Xcode 6 to Xcode 7 code

Discussion in 'iOS Programming' started by jackdk, Aug 3, 2016.

  1. jackdk, Aug 3, 2016
    Last edited by a moderator: Aug 3, 2016

    jackdk macrumors newbie

    Joined:
    Aug 3, 2016
    #1
    Hello all,

    i have been using the following code:
    Code:
    let alertView:UIAlertView = UIAlertView()
    
                alertView.title = "Sign in Failed!"
    
                alertView.message = "Please enter Username and Password"
    
                alertView.delegate = self
    
                alertView.addButtonWithTitle("OK")
    
                alertView.show()
    
    this was for Xcode 6, however 7.3 is now out and it informs me that UIALertview is old and the new updated version is UiAlertController. I'm just not sure how it would fit in and replace within the cod that i put up. any help or advice would be great thx!
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2

Share This Page