Question: Im new to ASP. can any body give the sample code for select all the checkbox while selecting one checkbox from the check box list. 

Select All

A

B

C

once checking the select all check from the checkbox list all other items also should get selected.

Answer: 
Use:

```
self.dismiss(animated: true, completion: nil)

```

instead of:

```
self.navigationController.dismissViewControllerAnimated(true, completion: nil)

```
Try this:

```
@IBAction func close() {
  dismiss(animated: true, completion: nil)
}

```