Frage

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

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top