Вопрос

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

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top