Open iMessage in the App (iOS8)

To open an iMessage window, you only need to create MFMessageComposeViewController instance.  It is very easy to use and present it like other UIViewController.

 

Your viewcontroller should conform to protocol MFMEssageComposeViewControllerDelegate to handle actions within the MFMMessageComposeViewController.