Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 21    Views: 70

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
05/23/13 02:41 PM (12 years ago)

XIB Menu

Hey, having a weird problem with the Xib menu plugin. I change the the xib file in xcode, for now I'm just deleting buttons and labes, but the simulator loads the full menu. I've been working on the landscape xib file. It never loads correctly. I have to rotate it to portrait and then back to landscape for it load correctly. I've cleaned the project, downloaded the source code again. Could be causing this? Cheers- Miguel
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/23/13 02:45 PM (12 years ago)
It seems it always loads the portrait view, even though the ipad is in landscape mode.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/23/13 02:45 PM (12 years ago)
the rotate issue I provided a fix, you were in the thread as well. https://www.buzztouch.com/forum/thread.php?fid=1395920398779DB4B755A76&tid=1395920398779DB4B755A76
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/23/13 03:02 PM (12 years ago)
how do you remember these threads man... I'm gonna fly out to London and buy you lunch. Thanks
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
05/23/13 03:03 PM (12 years ago)
Yup, I have this added as an update but haven't sent it off yet. Will get it done soon. But in the meantime Kittsy's fix works perfectly!
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/23/13 03:06 PM (12 years ago)
because I'm sad lol
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/23/13 03:10 PM (12 years ago)
:) I used the If you deleted the "view" reference for iPadPortrait and added it to iPadLandscape that would also have fixed the problem. solution. Its a landscape only app. Thanks guys.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/23/13 03:10 PM (12 years ago)
lol
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/24/13 08:49 AM (12 years ago)
Hey, I'm trying to use more the one xib menu, I added different plugins, changed name and stuff to have more than on xib menu. I was able to have the first main menu xib menu open correctly reading the previous thread. On the main menu I have 4 buttons, they all lead to other xib menu screens. They all load the portrait even though the app is in landscape. Any ideas? Miguel
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
05/24/13 08:57 AM (12 years ago)
Did you put that code that kitsy mentioned in all the other plugins too?
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/24/13 09:07 AM (12 years ago)
on the screen that works I used the method you suggested, since it will be a landscape only app, that would do for me. Main screen loads ok. Did the same for the other, with no luck. I tried added the code Kitsy suggested to the other Xib menu.m files, but it didn't work. Will try again. But should it have worked with the way you suggested? What i did to use more xib menu screens was this: Change the info or config file, whatever its called to have the control panel recognize it as a diferent plugin. I just added 1, 2, 3 etc.... Then on the h file I also change this: @interface JM_Xib_button_menu_2 : BT_viewController { on the m file I changed this: #import "JM_Xib_button_menu_2.h" @implementation JM_Xib_button_menu_2 Am i missing something else to do? Thanks
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/24/13 09:11 AM (12 years ago)
So I added the code Kittsy suggested under viewwillappear on the xib menu plugin, and no luck.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/25/13 03:11 PM (12 years ago)
It seems it loads the main screen ok, but the other screens it loads the iphone portrait xib file.... Strange
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/25/13 03:20 PM (12 years ago)
Also tried changing the main page when the app opens to another one, and it seems its only loads correctly the first main xib menu screen. The other I tried to replicate do not load correctly. Must have been something I missed.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/25/13 03:35 PM (12 years ago)
Hi Miguel sorry for the late reply, been busy doing the most boring University Assignment. I'm confused at whats happening, could you show us a vid to see what is happening
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/25/13 03:47 PM (12 years ago)
Hey, no prob at all. Yes I'll make a video. But whats happening is I uploaded multiple xib-menu screen plugins. To be able to use multiple xib menus in an app. I added a number to the plugin JM_Xib_button_menu_2 to all the files I thought needed it. Only the original plugin, the one I did not touch, works. All the other xib menu always and only load the iphone xib file. Thanks
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/25/13 03:50 PM (12 years ago)
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/25/13 03:56 PM (12 years ago)
Got a feeling it may be something wrong with your duplications then. Did you change all the custom classes of the xibs in interface builder? Are they linked to the correct class file. If it works on the first it is extremely odd that it doesn't work with the others
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/25/13 03:57 PM (12 years ago)
I've just emailed you
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/25/13 04:46 PM (12 years ago)
I had named the xib files incorrectly when multiplying the plugin. Thanks Kittsy. Miguel
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/27/13 10:26 AM (12 years ago)
Hey, I'm having trouble to have menu rotate as you rotate the device? The menu does not change as you change from landscape to portrait. Any ideas? Thanks Miguel
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
07/18/13 05:54 AM (12 years ago)
Hey, so THE MAN, Kittsy, solved me this problem as well. BT_tabBarController.m comment out lines 112 to 138 It works great. Thanks Cheers Miguel
 

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.