相关疑难解决方法(0)

架构i386的未定义符号:_OBJC_CLASS _ $ _ SKPSMTPMessage",引用自:error

我已导入框架,用于从后台应用程序发送电子邮件,即SKPSMTPMessageFramework.有人可以建议为什么会出现以下错误

Undefined symbols for architecture i386:

"_OBJC_CLASS_$_SKPSMTPMessage", referenced from:
  objc-class-ref in ConfirmController.o

"_kSKPSMTPPartContentTransferEncodingKey", referenced from:
  -[ConfirmController sendEmail] in ConfirmController.o

"_kSKPSMTPPartMessageKey", referenced from:
  -[ConfirmController sendEmail] in ConfirmController.o

"_kSKPSMTPPartContentTypeKey", referenced from:
  -[ConfirmController sendEmail] in ConfirmController.o

ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

采取框架的来源: -

锁定MFMailComposeViewController中的字段

更新:

答:只需将文件夹拖放到项目上,然后单击复制即可.多数民众赞成也选择项目复选框和目标复选框.

iphone email-integration compiler-errors objective-c ios

233
推荐指数
6
解决办法
25万
查看次数

使用Swift实施应用内电子邮件失败

我想使用swift来实现应用内电子邮件.单击该按钮时,会弹出电子邮件窗口.但是,我无法发送电子邮件.此外,点击取消删除草稿后,我无法返回到原始屏幕.

import UIkit
import MessageUI


class Information : UIViewController, MFMailComposeViewControllerDelegate{

    var myMail: MFMailComposeViewController!

    @IBAction func sendReport(sender : AnyObject) {

        if(MFMailComposeViewController.canSendMail()){
            myMail = MFMailComposeViewController()

            //myMail.mailComposeDelegate

            // set the subject
            myMail.setSubject("My report")

            //To recipients
            var toRecipients = ["lipeilin@gatech.edu"]
            myMail.setToRecipients(toRecipients)

            //CC recipients
            var ccRecipients = ["tzhang85@gatech.edu"]
            myMail.setCcRecipients(ccRecipients)

            //CC recipients
            var bccRecipients = ["tzhang85@gatech.edu"]
            myMail.setBccRecipients(ccRecipients)

            //Add some text to the message body
            var sentfrom = "Email sent from my app"
            myMail.setMessageBody(sentfrom, isHTML: true)

            //Include an attachment
            var image = UIImage(named: "Gimme.png")
            var imageData = …
Run Code Online (Sandbox Code Playgroud)

email-attachments ios swift mfmailcomposeviewcontroller

10
推荐指数
1
解决办法
4736
查看次数

如何在iOS5中向后台发送电子邮件?

在iPhone应用程序中,我想向忘记密码的人发送电子邮件.我想在后台发送邮件(不能使用MFMailComposeViewController),也不能将应用程序推送到后台.有没有办法实现这个目标?

email iphone background ios5

8
推荐指数
3
解决办法
1万
查看次数

Iphone SDK:在iphone应用程序中在后台发送电子邮件

Iphone sdk:如何从iphone应用程序发送背景信息.

根据用户做出的某些选择,我想触发一个事件来向管理员发送电子邮件.

我知道MFMailComposeViewController,但这将打开我想跳过的邮件编辑器窗口.

email iphone-sdk-3.0

6
推荐指数
1
解决办法
3544
查看次数

无需用户交互即自动发送消息

可能重复:
如何以编程方式在iPhone上发送短信?
如何在不打开SMS界面的情况下从iPhone应用程序发送短信?

我需要我的应用程序可以自动发送消息而无需用户交互.

这个有可能?我读了一些关于smslib但是是用java开发的.

苹果是否接受了这样做的框架?

谢谢你提前的时间......

iphone xcode

6
推荐指数
1
解决办法
9708
查看次数

在不显示视图控制器的情况下使用 MFMailComposeViewController

我正在使用 MFMailComposeViewController 发送带有附件的电子邮件。在所有指南中,它选择将视图控制器呈现为模态视图,以便用户可以更改字段并选择发送或取消。

我不希望人们能够更改我输入的信息,所以我想知道是否可以强制它发送电子邮件而不进入模态视图?

我知道将 url 与 mailto 一起使用,但相信您无法添加附件。

如果有人知道这是否可行,或者如果他们知道如何做甚至更好,我将非常感谢您的帮助。

非常感谢。

email xcode attachment modalviewcontroller ios

0
推荐指数
1
解决办法
2890
查看次数