我必须将项目从 iOS 3.2 更新到 iOS 4.3(或 iOS 5.0)。
我发现在 iOS 3.2 中,他们使用MessageWebLayer.h
了框架的私有文件。
但是从这个链接,我发现它是从 iOS 4.3 公开的。
当我尝试MessageWebLayer.h
在我的应用程序中实现时,它给了我错误。
从我的搜索中我发现我必须使用MessageUI
框架的 MFMailComposer。
适用于 iOS 3.2 的代码
.h 文件
导入“MessageWebLayer.h”
MessageWebLayer *消息;
.m 文件
CGRect webViewFrame = CGRectMake(0, 118, 768, 4000);
message =[[MessageWebLayer alloc] initWithFrame:webViewFrame visibleSize:webViewFrame.size];
如果我尝试在 iOS 4.3 中运行它,它会给我类似的错误
_OBJC_CLASS_$_MessageWebLayer", referenced from:
objc-class-ref in MessageUIAppDelegate.o
但我仍然无法解决问题?
我该怎么办 ?