[ios] shareKit,三行代码分享到社交媒体
shareKit是一枚ios上的分享库,支持分享文字,URL,图片和文件(取决于目标媒体是否支持)。
操作相当简单,只要三行代码。
- (void)myButtonHandlerAction { // Create the item to share (in this example, a url) NSURL *url = [NSURL URLWithString:@"http://getsharekit.com"]; SHKItem *item = [SHKItem URL:url title:@"ShareKit is Awesome!"]; // Get the ShareKit action sheet SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item]; // Display the action sheet [actionSheet showFromToolbar:navigationController.toolbar]; } |

相关文章:
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.





不知所云。
http://fur.ly/5g3g