ShareKit/ShareKit — pull request #482 by bigkm (2012-08-14 00:22:29+00:00)
Title: Add customisable modalPresentationStyle

I've found that I needed a UIModalPresentationPageSheet for SHKMail sharing and not for anything else and since this logic is applied to the vc/navc inside showViewController: its too late to change it.

This allows anybody to make simple changes to the style without hacks.

---

###### My DefaultSHKConfigurator subclass i've added these methods

```objc
- (NSString *)modalPresentationStyleForController:(id)controller
{
if ([controller isKindOfClass:NSClassFromString(@"MFMailComposeViewController")]) {
return @"UIModalPresentationPageSheet";
}
return [self modalPresentationStyle];
}

- (NSString *)modalPresentationStyle
{
return @"UIModalPresentationFormSheet";
}
```

Wasn't sure what to call the parameter which I've called controller, apart from calling it thing controller seems to coverer the following type Sharer/ViewController/NavController