Reputation: 25
I am using MFMessageComposeViewController
api to send the sms i am sending message body to this api by-----(any 3rd parti api is there for sending sms)
Can we add its on view above that api View.
MFMessageComposeViewController *controller = [[[MFMessageComposeViewController alloc] init]autorelease];
if([MFMessageComposeViewController canSendText])
{ NSLog(@"contact page MFMessageComposeViewController canSendText");
controller.messageComposeDelegate = self;
controller.body =[sharedInstance getsmsText];
giving some message to controller body and api during sending mail coming ,but user can edit it can change it.i dont want it to be changed by user. any clue is appreciable i am able to make image over the api view but problem is keypad coming over that view ..
Upvotes: 1
Views: 1627
Reputation: 2377
Add a image of text you don't want to get change other wise there is no option to stop the edit the body of the iphone mail composer .
Upvotes: 1
Reputation: 26400
I dont think its possible using public APIs but certainly Apple doesn't go well with this. The Apple reference for MFMessageComposeViewController
clearly mentions
Important: The message composition interface itself is not customizable and must not be modified by your application. In addition, after presenting the interface, your application is unable to make further changes to the SMS content. The user can edit the content using the interface, but programmatic changes are ignored. Thus, you must set the values of content fields, if desired, before presenting the interface
So your app may be rejected if you do this.
Upvotes: 4