Screen Shot Share

buzztouch plugin: Screen Shot Share
Version: v1.0
Simple helper class that allows your user to take a screen shot and share with others using UIActivityController AKA Share sheets.
works on iOS iOS
Developer Info
Latest Review
PointerAlanMac | 07/14/14 (v1.0)
The functionality of this plugin is simple and elegant. Assign the plugin to a button on a menu and when you click, the plugin captures a screen-shot of the page that the user is looking at it and uses the built in 'share' ios feature prompting the u...
Screenshots
More Information
iOS6 and above come on it’s nearly 3 years.

WILL NOT WORK WITH TABBAR AS IT IS A MASSIVE PAIN COMING SOON HOPEFULLY.

Nice simple set of class files that let’s the app snap a screen shot and share. No longer are we shackled to the press home and onOff button, open Photo’s app and share. the burden is gone.

A few ways to integrate below is the easiest.

Instructions for use as a plugin.
To use this plugin in the traditional Buzztouch way (think call us button, email us) this way you must make amendments to the BT_viewController.m located in the BT_Layout Folder.
Failure to add the code lines will result in scary errors that may or may not run off with your favorite sandwich filling from the refrigerator.
Near the top of BT_viewController.m I put mine on line 39. add this line
#import "AK_screenShotShare.h"
Well Done!!
Next let's scroll down to line 910. we are going to paste a bit of code between the "}" that trails the word return; and before //BT_screen_video. Make some space and add.
//AK_screenShotShare
if([[theScreenData itemType] isEqualToString:@"AK_screenShotShare"]){
     if ([[theScreenData.jsonVars objectForKey:@"showNavBars"]integerValue] == 0) {
          [AK_screenShotShare takeAndShareScreenShotWith:theScreenData];
     }else{
          [AK_screenShotShare takeAndShareScreenShotWithoutNavbarWith:theScreenData];
     }
     return;
}

It should now look like this


     //bail
     return;

}


//AK_screenShotShare
if([[theScreenData itemType] isEqualToString:@"AK_screenShotShare"]){
if ([[theScreenData.jsonVars objectForKey:@"showNavBars"]integerValue] == 0) {
[AK_screenShotShare takeAndShareScreenShotWith:theScreenData];
}else{
[AK_screenShotShare takeAndShareScreenShotWithoutNavbarWith:theScreenData];
}
return;
}


//BT_screen_video


Well done that is it.

iOS Project
------------------------
2 Files
AK_screenShotShare.h AK_screenShotShare.m

Android Project
------------------------
Coming soon

JSON Data
------------------------
{
"itemId": "88AE72F5F591D0E29C7A200",
"itemType": "AK_screenShotShare",
"itemNickname": "mosaic share",
"showNavBars": "0",
"bodyText": "This is a nice box to type messages",
"urlString": "http://www.kittsy.co.uk"
}