0
在swift中,这很简单。例如,如果我想添加自定义Pinterest UIActivityType:Objective-C版本的自定义UIActivityType
extension UIActivityType {
static let postToPinterest = UIActivityType(rawValue: "pinterest.ShareExtension")
}
这就是我所要做的。但是,我对如何在objective-c中做到这一点感到困惑。我在想这样的事情,但我不太确定。
static UIActivityType UIActivityTypePostToPinterest = @"myApp.pinterest.ShareExtension";
任何帮助,将不胜感激。