使用+(id)instantMessageWithText:(id)arg1 flags:(unsigned long long)arg2 的问题

+(id)instantMessageWithText:(id)arg1 flags:(unsigned long long)arg2 这个函数来自于IMMessage.h头文件
我想调用这个函数发送iMessage消息 不知道它的两个参数分别代表什么意思。
还有个问题是这个函数能够发送带图片 带链接的富文本消息吗?

醒一醒。iMessage广告已经凉了

没有吧? 好像还有好多人在搞哇.

效果越来越不行了吧我记得。

我只想知道这个函数能否实现发送富文本功能。。。能否应用到商业上我不关心。。。

自己在这里打个hook然后手动发送一个富文本。看这个方法有没有被调用,传的参数都是啥。不就知道了吗

:ok_hand: 我尝试下

我现在把这个函数hook了 不太会用theos。。。
我现在想用%log()把这个函数的参数输入到系统日志,不知道如何操作。。。%hook IMMessage

  • (id)instantMessageWithText:(id)arg1 flags:(unsigned long long)arg2 {
    %log(不知道这里该如何传入函数的参数。。。);
    %orig;
    return 0;
    }

%end

啥都不用写直接%log; 就成了

嗯嗯 成功了:blush:

你对这个函数有了解吗?它的第二个参数代表什么意思呀 flags:(unsigned long long)arg2我把http://iosre.com/t/detect-and-send-imessages-on-ios-8/940这个帖子中的例子运行了,修改一下第二个参数就发不出去了 还有我给它第一个参数传入NSMutableAttributedString类型的变量,设置的特殊格式都没有显示出来。。。这是什么原因呀

请教下,iMessage里面咋只有这么点头文件?CDStructures.h
CKBlankTranscriptController.h
CKConversationListController-testingAdditions.h
CKMessagesController.h
CKTranscriptComposeDelegate-Protocol.h
CNFRegWizardControllerDelegate-Protocol.h
IMSystemMonitorListener-Protocol.h
MFMailComposeViewControllerDelegate-Protocol.h
NSObject-Protocol.h
SMSApplication-mSMSApplicationTesting.h
SMSApplication.h
UIActionSheetDelegate-Protocol.h
UIAlertViewDelegate-Protocol.h
UIApplicationDelegate-Protocol.h
UINavigationControllerDelegate-Protocol.h
UISplitViewControllerDelegate-Protocol.h

现在好像能13以上吧