Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 75

Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
03/13/13 03:44 AM (12 years ago)

XIB Button Menu Plugin Question!

Hi I guess this question is aimed at its creator, Mutzy. I wanted to know if it is possible for me to create different types of XIB files? I'm assuming you cannot. Reason why I ask this is, I want to create a custom menu page with the plugin, but I also want to create a second custom page within the same app, can I do this? If so how? If this isn't possible, it would make a great update to the plugin, if the plugin had up to 3 XIB (screen)files, XIB1, XIB2, XIB3 and these can be selected in the control panel. This way I can have different menu pages within the same app. Not sure if I made sense, but could you shed some light on this. About to buy the plugin, can't wait to start using.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
03/13/13 04:10 AM (12 years ago)
As I said in the other post, the easiest way to do this is to copy the plugin itself (ie xib2). This is easy if you're self hosted, otherwise you can create a custom plugin of your own and just substitute with the files from this plugin. By doing this you can have as many custom screens as you wish. josh
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
03/13/13 12:18 PM (12 years ago)
Hi Mutzy I am Self Hosting, but have no idea how I would duplicate your plugin.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
03/13/13 12:58 PM (12 years ago)
Now that I've had time to sit down and think about this simply "copying" the plugin folder won't work. So here's what I recommend: 1. Go to the buzztouch control panel and create a new plugin, let's name it xib2. 2. Download your new plugin and the xib home button plugin 3. Replace the files in your new plugin with the files in the xib home button plugin 4. rename the ios files in your plugin to xib2.h, xib2.m, xib2.xib and xib2~ipad.xib 5. Edit the config.txt file, especially the first section (change "uniquePluginId", "displayAs", and "loadClassOrActionName") 6. Upload my plugin and your plugin to your self-hosted control panel. The only other thing I can think of that you'll have to do is connect the xib files to the class. THe best thing to do is watch the initial video on this by David: http://www.youtube.com/watch?v=OJrMVTn8z0s Hope that helps.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
03/14/13 04:16 PM (12 years ago)
Thanks Mutzy, will have a go, hate coding, pretty crap at it. Do you think it's something you may add into future update to the plugin?
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
04/01/13 08:40 AM (12 years ago)
Hi Mutzy trying to duplicate your plugin from your guide above. Just wanted to know how necessary is it to change the class in the XIB? Is this what I need to do to get the duplicate plugin working or would this be for other reasons like changing what the buttons do? I don't want to change any aspect of your plugin other than to have a 2nd version to create more than one custom menu in the same app. Can you advise. Thanks!
 

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.