Question

I want to use MFMessageComposeViewController to send an in-app SMS and I import the MessageUI frameworks in my project. But when I use

#import "MessageUI.h"

Xcode told me that : MessageUI.h not found. I don't know why and how can I fix this?

Thank you very much.

frameworks

The error

Was it helpful?

Solution

This syntax:

#import "MessageUI.h"

would be used to import headers in your local project. To import system-type headers, use this syntax:

#import <MessageUI/MessageUI.h>

When you use this syntax,the compilar knows where to look for the header in question.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top