使用iPhone中的自定義按鈕在MFMessageComposeViewController中執行按鈕操作

[英]Performing the button action in MFMessageComposeViewController with custom button in iPhone


I have contact list and I want to send an sms using MFMessageComposeViewController and perform action through my custom button without opening the MFMessageComposer.I written the action in this method - (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result,but the MFMessageComposer is displaying.So only tell me how to do without displaying the MFMessageComposer.

我有聯系人列表,我想使用MFMessageComposeViewController發送短信並通過我的自定義按鈕執行操作而不打開MFMessageComposer。我在此方法中編寫了動作 - (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result,但是MFMessageComposer正在顯示。所以只告訴我如何不顯示MFMessageComposer。

1 个解决方案

#1


1  

This is not the way to do this. You either use MFMessageComposer and then the only thing you can customize comes AFTER the composer finishes its work (via the "didFinishWithResult" delegate method) or you implement your own composer (not recommended). What you are doing is implementing a method that comes after the mail composer is done, which is not what you are trying to achieve.

這不是這樣做的方法。您可以使用MFMessageComposer,然后您可以自定義的唯一內容是在作曲家完成其工作之后(通過“didFinishWithResult”委托方法)或您實現自己的作曲家(不推薦)。你正在做的是實現一個在郵件編寫器完成后出現的方法,這不是你想要實現的。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2012/02/08/72efa80cc1974ac1b286e591fe79828.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com