DarkLeafyGreen
DarkLeafyGreen

Reputation: 70426

How to cancel message sending in TTMessageController?

I use TTMessageController to have a view similiar 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?

Upvotes: 0

Views: 158

Answers (2)

ElectronicFish
ElectronicFish

Reputation: 26

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

Upvotes: 1

Laas
Laas

Reputation: 6068

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.

Upvotes: 1

Related Questions