Skip to content

Instantly share code, notes, and snippets.

@g-1
Last active October 15, 2016 17:36
Show Gist options
  • Save g-1/36e0135881e75fa262b42647be54ecdf to your computer and use it in GitHub Desktop.
Save g-1/36e0135881e75fa262b42647be54ecdf to your computer and use it in GitHub Desktop.
Xcode8になっていろいろ変わったこと ref: http://qiita.com/g-1/items/7fb052e05369c2540f40
- override func activityType() -> String? {
- return "XXXX"
+ override var activityType : UIActivityType {
+ return UIActivityType(rawValue: "XXXX")
}
[[UIApplication sharedApplication] openURL:url
options:@{}
completionHandler:nil];
- override func activityType() -> String? {
- return "XXXX"
+ override var activityType : UIActivityType {
+ return UIActivityType(rawValue: "XXXX")
}
UIApplication.shared.open(url, options: [:], completionHandler: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment