Has anybody encountered this kind of error in MFMessageComposeViewController?
I allocated and presented it like this:
MFMessageComposeViewController *message = [[MFMessageComposeViewController alloc] init];
message.messageComposeDelegate = self;
[[UIApplication sharedApplication].delegate.window.rootViewController presentModalViewController:message animated:YES];
but it presents an empty view and says:
Application tried to push a nil view controller on target <MFMessageComposeViewController: 0x96d1380>.
Possible duplicate of MFMessageComposeViewController on Simulator – canSendText?
Basically this occurs in the simulator on Lion and Mountain Lion if it has a Messages account enabled. Try testing on a real device as it should work okay there.