开发者

How to cancel message sending in TTMessageController?

I use TTMessageController to have a view s开发者_开发问答imiliar to the sms composer of iOS. The reference describes a method to cancel the composer which would close its modal view.

- (BOOL) messageShouldCancel

Determines if the message should cancel without confirming with the user.

But I want to abort the sending of the message and leave the composer open. I could not find any method in the reference to perform this.

Any ideas?


You can use

[self showActivityView:NO]

That will remove the sending view from the composer. Read it here http://api.three20.info/interface_t_t_message_controller.php


Looking through the reference, I think that you can use the TTMessageControllerDelegate's method composeController:didSendFields: to simply not skip sending the message when needed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜