Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

A generic message view controller using the style of iOS compose view controllers

License

Notifications You must be signed in to change notification settings

RobertoEstrada/DEComposeViewController

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEComposeViewController

A generic message entry view controller using the style of iOS compose view controllers (like tweet sheets).

Based on the excellent tweet sheet based control DETweetComposeViewController from DoubleEncore.

Example Usage

DEComposeViewControllerCompletionHandler completionHandler = ^(DEComposeViewControllerResult result, NSString* message, UIImage* image, NSString* lat, NSString* lon) {
  switch (result) {
    case DEComposeViewControllerResultCancelled:
      NSLog(@"Note Result: Cancelled");
      break;
    case DEComposeViewControllerResultDone:
      NSLog(@"Note Result: Done");
      break;
  }
  [self dismissModalViewControllerAnimated:YES];
};

DEComposeViewController *composeVC = [[DEComposeViewController alloc] init];
self.modalPresentationStyle = UIModalPresentationCurrentContext;

// add an image to the sheet
[composeVC addImage:image];

composeVC.completionHandler = completionHandler;
[self presentModalViewController:composeVC animated:YES];

About

A generic message view controller using the style of iOS compose view controllers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 98.7%
  • Ruby 1.3%