Question: I'm trying to make my first iOS app, and the tutorial asked me to use UIAlertView. XCode informed me that this was deprecated and that I should use UIAlertController. I replaced the instances of UIAlertView with UIAlertController and am still running into problems: it says, "No visible @interface for 'UIAlertController' declares the selector 'initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:'
I would appreciate any help with this. My code is below:

```
//
//  ViewController.m
//  cv
//
//  Created by Frank Michael Tocci on 6/17/16.
//  Copyright © 2016 Frank Tocci. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    UIAlertController * alert = [[UIAlertController alloc] initWithTitle:@"Hello!" message:@"Welcome to OpenCV" delegate:self cancelButtonTitle:@"Continue" otherButtonTitles:nil];
    [alert show];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end

```

Answer: 
[UIAlertController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertController_class/) has a different interface than UIAlertView. You must use a different constructor that takes in just the title, message, and preferred style.

Then you can add actions to the UIAlertController once defined. Click on the hyper link which will take you to Apple's documentation where they also provide an example of how to use a UIAlertController.
If you are deploying your application for iOS 8 then just change the deployment target to iOS 8 after this you will not find any depreciation for using `AlertView`.
`AlertView` is depreciated in iOS 9 and above but below iOS 9 it still works fine.