Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 92

allandriggers
Apple Fan
Profile
Posts: 188
Reg: Dec 13, 2012
Knoxville, TN
11,680
05/15/14 07:48 PM (10 years ago)

Custom Plugin

For those of you who create custom plugins, can u include a storyboard instead of an .xib file for the plugin interface?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/15/14 08:42 PM (10 years ago)
you can.i think the shark game uses storyboard
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/15/14 11:37 PM (10 years ago)
Adding a storyboard requires a bit of extra code to handle navigation and some other items... Not always as easy as it should be. But of course it 'can' be done. A xib is pretty straight forward, and far easier however. Cheers! -- Smug
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
05/16/14 01:29 AM (10 years ago)
I thought Mr.David's plugin purpose was to allow developers to import storyboards https://www.buzztouch.com/plugins/plugin.php?pid=C8B90559C85912D71D9FB10 Has anyone purchased this yet, because I was curious
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/16/14 05:14 AM (10 years ago)
I used that plugin for one of my plugins.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
05/16/14 09:42 AM (10 years ago)
Yep, my shark attack plugin and slot machines plugin both use mrdavids custom storyboard code to load the storyboards, however there seems to be a small glitch in it, and I can't get him to reply about it. If using the code to automatically load the storyboard in the viewdidload, it doesn't work. If I put a delay on the trigger of .01 second, it works, but the user sees a glimpse of the xib followed by the transition animation, which isn't acceptable for my use. What I have done for now while using it is to use the xib as a "landing page", then have the user press a start button from there, which then loads the storyboard. Not a perfect solution, but works until mrdavid resurfaces from the depths to address the question.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
05/16/14 05:21 PM (10 years ago)
Hey Dave -- do you have a suitable code-change? (Instead of that creative workaround of a landing screen) If you do have a fix, please post. After BuzzCon Vegas 2014, that MrDavid feller dropped off the map. He even blanked his avatar and zapped his location! We may have to send in our fixes to Chris1 as updates to any of DVB's plugins. Correction -- Chris1 cannot make updates to plugins made by others. That responsibility lies with the original plugin developer. Thanks, -- Niraj
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
05/16/14 07:07 PM (10 years ago)
Hi Niraj, I haven't found a workaround yet other than the landing page or delaying the view push by .01 second, but the delay method doesn't look good since the transition animation is shown. If you find another method of getting it to work, let me know. I figured since MrDavid had the code in the viewdidload, simply putting it at the end of the viewdidappear would take care of it, but no such luck :(
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
05/16/14 08:27 PM (10 years ago)
Correction -- Chris1 cannot make updates to plugins made by others. That responsibility lies with the original plugin developer. In this case, MrDavid is the owner of the plugin, only he can make updates to it. Dave -- When I have the need for a Storyboard plugin, I shall investigate and hopefully a light bulb will get lit. :-) -- Niraj
 

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.