---
title: runModal()
framework: quartz
role: symbol
role_heading: Instance Method
path: quartz/ikpicturetaker/runmodal()
---

# runModal()

Opens a modal picture taker dialog.

## Declaration

```swift
func runModal() -> Int
```

## Return Value

Return Value Returns NSOKButton if the user edits or chooses an image; NSCancelButton if the user cancels or does not change the default image.

## See Also

### Creating And Displaying The Picture Taker

- [pictureTaker()](quartz/ikpicturetaker/picturetaker().md)
- [beginSheet(for:withDelegate:didEnd:contextInfo:)](quartz/ikpicturetaker/beginsheet(for:withdelegate:didend:contextinfo:).md)
- [begin(withDelegate:didEnd:contextInfo:)](quartz/ikpicturetaker/begin(withdelegate:didend:contextinfo:).md)
- [popUpRecentsMenu(for:withDelegate:didEnd:contextInfo:)](quartz/ikpicturetaker/popuprecentsmenu(for:withdelegate:didend:contextinfo:).md)
