Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 21    Views: 124

Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
02/12/13 03:35 PM (12 years ago)

Future tutorial

I'm currently making a tutorial, to show how you can add share settings to any screen you like. A dedicated plugin is cool but sometimes you want share settings to pop up from navbar buttons or normal buttons. I've knocked this quick app to demonstrate how you could integrate sharing services into your application. (I will be writing the tutorial up over the next few days) The beauty of the example is that although the shares are coming from 3 different types of sources and combining 14 buttons. All of the text comes from four different strings, linked to five different methods. The buttons are created in interface builder for a shortcut but you could use Absentias make a button do anything tutorial. http://www.buzztouch.com/files/howtos/make-a-button-do-anything.pdf Would a tutorial based around using the button menu plugin be better? This demonstrates the importance of not duplicating code and making use of variables. The app can be seen on my youtube channel http://youtu.be/OLNPZ3PnvFU
 
ZutraLife
Code is Art
Profile
Posts: 21
Reg: May 03, 2012
LA
2,910
like
02/12/13 03:42 PM (12 years ago)
seems like this would be a more customized form of the Socialize SDK, which is placed at the bottom tab bar and is limited in its social integration. Would love to see it used with buttons made in interface builder so it can be placed on any type of screen!
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 03:43 PM (12 years ago)
Socialize is a hell of a lot more detailed, this may be simpler though
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
02/12/13 03:59 PM (12 years ago)
I'll check it out thanks @kittsy
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/12/13 04:00 PM (12 years ago)
Thanks Kittsy! Cheers! -- Smug
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 04:01 PM (12 years ago)
@smug your my inspiration lol
 
Rohan
Veteran developer
Profile
Posts: 79
Reg: Mar 12, 2011
London
10,040
like
02/12/13 04:05 PM (12 years ago)
Hi Kittsy, this would be great - don't know if you remember our conversation from the Oxford meetup a couple of months ago about setting up a share button for share kit? If you recall the problem stems from the rss feed and share url button in Buzztouch html screen not finding the correct url - usually its a link to a syndicated advertising feed, hardly ever the page url. I recall David saying it would be at the top of his list of things to do, but I guess he didn't find a solution or had bigger fish to fry. I find it really frustrating that this button does't work. The only workaround seems to be integrating share kit, as this also has cool additional functionality that socialise doesn't do - like evernote integration etc. I noticed that you had a conversation recently about sharekit integration? Did this ever lead to a solution?? The nearest I ever got to figuring out the code which might work at a simple level was from the (Sharekit 2) ExampleShareLink.m code which has the following code to parse a URL: { SHKItem *item = [SHKItem URL:webView.request.URL title:[webView pageTitle]]; SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item]; [actionSheet showFromToolbar:self.navigationController.toolbar]; } Would you be able to figure out how to integrate this into the share button on buzztouch - I know you like a coding challenge! Beers on me by paypal if you can ;-)
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 04:09 PM (12 years ago)
Share kit is an absolute f!@£r I have since found various frameworks that do each thing separately, the plugin is absolutely huge. Using this version should be easier to do this, will have to dig out how to parse the webpage from the webview someone on stack overflow would have done it
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
02/12/13 04:11 PM (12 years ago)
Looks cool. Thanks Kittsy. Cheers. Miguel
 
Rohan
Veteran developer
Profile
Posts: 79
Reg: Mar 12, 2011
London
10,040
like
02/12/13 04:33 PM (12 years ago)
I agree Sharekit is a bag of hurt, way too many dependencies and gotchas. Laughable when they say its a 10 minute installation. I would be very happy just to have a share this page email link work, one that actually sends the URL of the page that is currently being viewed. Would one of the frameworks you mention do this, or would the code snippet I provided above be up to the task? Rohan
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 04:34 PM (12 years ago)
it works by pulling what ever data you give it, is it the custom url plugin causing the bother. All we need is 1. to find is how to pull the current webview url 2. save that url as a string on (button press) 3 it can then link to all of those facebook, twitter, email
 
Rohan
Veteran developer
Profile
Posts: 79
Reg: Mar 12, 2011
London
10,040
like
02/12/13 04:40 PM (12 years ago)
Sounds like the right approach, any ideas how to do it? If not I'm planning on trying to tackle the Sharekit/Buzztouch integration when I have a few whole days free next week.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 04:59 PM (12 years ago)
-(void)checkURL{ NSString *currentURL = webView.request.URL.absoluteString; [BT_debugger showIt:self:currentURL]; } That's the method to pull the url, it works when I put different websites. When checking evertonfc.com the webview automatically turns this into its mobile counterpart m.evertonfc.com so it gives that when sharing. So now that is pulling the way we want it the rest is simples as the meerkats would say
 
AppOne
buzztouch Evangelist
Profile
Posts: 348
Reg: Apr 03, 2012
London
13,980
like
02/12/13 05:08 PM (12 years ago)
The fancy nav bar button with the share buttons exploding and rolling out like a... from the right hand corner ... nice
 
Rohan
Veteran developer
Profile
Posts: 79
Reg: Mar 12, 2011
London
10,040
like
02/12/13 05:08 PM (12 years ago)
Its simples when you do it! Will give it a try integrating it into my app tomorrow - its getting a bit late for me right now as have to up in the morning. Good on you :-) Well done!
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 05:09 PM (12 years ago)
@ AppOneBeta thanks I was just showing off lol
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/12/13 05:12 PM (12 years ago)
@Rohan me to the bed is calling. I'll modify the customURL add the email share only option and send a copy to you As I said the problem with Facebook and twitter is iOS 6 uses social framework. ios 5 doesn't have facebook integration need to use a third party but has face book, below 5.0 all 3rd party sdk's. Massive amounts of code. That's why socializes options are better in my opinion. Sharekit when it works is backward compatible between them all but you need all the api secrets and keys from the different services for it to work
 
Rohan
Veteran developer
Profile
Posts: 79
Reg: Mar 12, 2011
London
10,040
like
02/12/13 05:21 PM (12 years ago)
Totally get the problem with iOS versions, and the sdk's. I think It'll be an interesting project to work on personally speaking as I don't intend to support apps below iOS 5 anymore as the latest Xcode forces as much, so should be easier to integrate. But thats for another day, and if I can get it to work (big IF) then I'll post a how to for other Buzztouch users. Looking forward to you how2 on Socialise integration in the meantime. Much appreciated your offer for an email copy - you can send a private message via Buzztouch for my email address. Rohan
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
02/12/13 08:01 PM (12 years ago)
man that nav bar effect is flippin awesome - did you whip that up yourself?
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
02/13/13 01:30 AM (12 years ago)
I like that!! Would like to see how you pulled that off.. Looking forward to the tutorial!
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
02/13/13 04:33 AM (12 years ago)
I wish I had the know how to create that spinny thing from scratch. Its from a very simple framework, I can't remember the name as not at the mac, but I am going to use that in the example explain how to integrate third party kit.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
02/13/13 06:02 AM (12 years ago)
cool. let us know which framework once you're on your mac @Kittsy
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.