---
title: disableUserAttachments()
framework: messageui
role: symbol
role_heading: Instance Method
path: messageui/mfmessagecomposeviewcontroller/disableuserattachments()
---

# disableUserAttachments()

Disables the camera/attachment button in the message composition view.

## Declaration

```swift
func disableUserAttachments()
```

## Discussion

Discussion In iOS 7.0 and later, call this method to disable the camera/attachment button in the message composition view. In an app linked against an older version of iOS, the camera/attachment button is not available in any case.

## See Also

### Managing attachments

- [attachments](messageui/mfmessagecomposeviewcontroller/attachments.md)
- [addAttachmentURL(_:withAlternateFilename:)](messageui/mfmessagecomposeviewcontroller/addattachmenturl(_:withalternatefilename:).md)
- [addAttachmentData(_:typeIdentifier:filename:)](messageui/mfmessagecomposeviewcontroller/addattachmentdata(_:typeidentifier:filename:).md)
- [MFMessageComposeViewControllerAttachmentURL](messageui/mfmessagecomposeviewcontrollerattachmenturl.md)
- [MFMessageComposeViewControllerAttachmentAlternateFilename](messageui/mfmessagecomposeviewcontrollerattachmentalternatefilename.md)
- [insertCollaborationItemProvider(_:)](messageui/mfmessagecomposeviewcontroller/insertcollaborationitemprovider(_:).md)
