views:

63

answers:

1

i have been told to

Implement Delegate Callbacks. In your header file, implement the callbacks, MFMessageComposeViewControllerDelegate and UINavigationControllerDelegate.

how would i do this ?

Thanks

Mason

+1  A: 

In your .h file, conform your class to those delegate protocols by adding <, your protocols that you want to conform to (comma-separated), and then a closing >.

Example:

@interface MyClass<MFMessageComposeViewControllerDelegate, UINavigationControllerDelegate>

,,,

@end

You need to then implement the required methods in the protocols in your .m file.

Take a look at the required methods of these protocols in their respective documentation:

MFMessageComposeViewControllerDelegate

UINavigationControllerDelegate

Jacob Relkin
@interface MainViewController : UIViewController <FlipsideViewControllerDelegate, <MFMessageComposeViewControllerDelegate, UINavigationControllerDelegate>{ IBOutlet UITextView *messagetoSend;}- (IBAction)showInfo:(id)sender;-(IBAction)sendInAppSMS:(id) sender;@enddoes that look right to you ?
@soiza Yes, it looks fine.
Jacob Relkin
Getting error "_OBJC_CLASS_$_MFMessageComposeViewController", referenced from: