I am using the following function for sending SMS.
if([MFMessageComposeViewController canSendText])
{
MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init];
controller.body = @"SMS Text";
controller.messageComposeDelegate = (id)self;
[self presentViewController:controller animated:TRUE completion:nil];
}
It working fine in iOS 7 and above.But it's crashing in iPod running on 6.0.1 with error
* * Assertion failure in NSDictionary *_UIRecordArgumentOfInvocationAtIndex(NSInvocation *, NSUInteger, BOOL)(), /SourceCache/UIKit/UIKit-2372/UIAppearance.m:1118
2014-05-21 11:33:38.170 Project[764:4913] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unknown key, "NSColor" in title text attributes dictionary' * First throw call stack: (0x36c922a3 0x3346997f 0x36c9215d 0x383b430b 0x37717925 0x37716a7b 0x36c8f62f 0x377167f5 0x377f45e5 0x37782cd7 0x37782b6d 0x359d390f 0x37782a61 0x3778c0d5 0x359c683b 0x3778c0b1 0x359c611f 0x359c599b 0x359c5895 0x359d4215 0x359d43b9 0x36163a11 0x361638a4) libc++abi.dylib: terminate called throwing an exception
Any help will be appreciable