To use this class, you must drag and drop the FeedbackFormController.h/.m files into your project and add the MessageUI.framework to your project. The classes themselves are documented with comments to make it easy to understand.
Three things: First, your calling class must be a subclass of UIViewController! Second, the UIViewController that will be the FeedbackForm parent needs to implement this delegate method:
-(void)messageControllerDismissed:(FeedbackFormController *)controllerFinally, in order to initialize the class you must use this method:
-(id)initWithDelegate:(id)delegateand use your parent UIViewController instance as the parameter. The last part is easy! To send the mail, use the method
-(void)sendFeedbackEmail
Download a sample project here.
No comments:
Post a Comment