Discussion Forums  >  Uncategorized

Replies: 49    Views: 209

guidoverduci
Lost but trying
Profile
Posts: 68
Reg: Dec 29, 2011
NorCal
680
02/06/12 03:10 PM (13 years ago)

can't seem to get orientation to work

I'm trying to get landscape to work on my app and I'm having no luck. Is there a setting in buzztouch? All I'm doing is clicking the orientation buttons in Xcode. Thanks!
 
DannyH
Apple Fan
Profile
Posts: 122
Reg: Nov 30, 2011
location unknow...
2,220
like
02/06/12 03:13 PM (13 years ago)
There is a setting in Buzztouch: Manage App core proprieties -> allow/prevent rotation
 
guidoverduci
Lost but trying
Profile
Posts: 68
Reg: Dec 29, 2011
NorCal
680
like
02/06/12 03:15 PM (13 years ago)
bingo. thank you!
 
guidoverduci
Lost but trying
Profile
Posts: 68
Reg: Dec 29, 2011
NorCal
680
like
02/06/12 03:32 PM (13 years ago)
is there anyway to change individual screens? Specifically, I don't want my home screen to rotate. Thanks.
 
DannyH
Apple Fan
Profile
Posts: 122
Reg: Nov 30, 2011
location unknow...
2,220
like
02/06/12 03:34 PM (13 years ago)
This IS a good question :)
 
theGreek
Aspiring developer
Profile
Posts: 648
Reg: May 25, 2011
Schaumburg, IL
7,830
like
02/06/12 06:56 PM (13 years ago)
I beleive you can do it via the code. Need to identify the screen find that code and you should see the settings in it.....
 
Aescleah
Code is Art
Profile
Posts: 43
Reg: Sep 15, 2011
Earth
430
like
02/07/12 10:24 AM (13 years ago)
You can indeed do it. It can be pretty simple... or complicated. If your home screen is the only of its kind in the app, then it'll be easy. Otherwise, it'll be more complicated. First, a few questions, are you using a tabbed layout, or a menu? I can help you with the tabbed layout, I haven't tried with a menu layout yet. In case you have a tabbed layout, then here's the second question: is your home screen unique in the app or not (meaning, if it's an rss reader for example, is it the only one, or are there other rss reader screens in your app?)? If your home screen is unique, then here is what you can do (I will assume in the following that your home screen is an rss reader, but it can be anything): - go to your BT_rotatingTabBarController.m file; - you will have to import the appropriate file, in this example: #import BT_screen_rssReader.h - look for the (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation method in your file (should be at the beginning); There, you will find this boolean: BOOL canRotate This is what we are going to play with! Somewhere in the method, you should have something like this: //appDelegate YOURAPPNAME_appDelegate *appDelegate = (YOURAPPNAME_appDelegate *)[[UIApplication sharedApplication] delegate]; Just after this line, add this: UIViewController *theViewController; int selectedTab = 0; if([appDelegate.rootApp.tabs count] > 0){ selectedTab = [appDelegate.rootApp.rootTabBarController selectedIndex]; theViewController = [[appDelegate.rootApp.rootTabBarController.viewControllers objectAtIndex:selectedTab] visibleViewController]; }else{ theViewController = [appDelegate.rootApp.rootNavController visibleViewController]; } Then, a few lines lower, still in the same method, you will find: if([[appDelegate.rootApp.jsonVars objectForKey:@allowRotation] isEqualToString:@largeDevicesOnly]){ canRotate = FALSE; } You will have to add a few lines after that. Remember that we want to prevent BT_screen_rssReader from rotating, but not the other screens, right? So here is what you have to add: if([theViewController isKindOfClass:[BT_screen_rssReader class]]){ canRotate = FALSE; }else{ canRotate = TRUE; } And that's all! You can then run your app, and the rss screen won't be able to rotate while the others will. This is of course only one of many possible solutions. If you're in a different situation than the one I described here, just try to give as many details as you can, and I'm sure we can figure out a solution!
 
guidoverduci
Lost but trying
Profile
Posts: 68
Reg: Dec 29, 2011
NorCal
680
like
02/07/12 02:54 PM (13 years ago)
my situation is I have a menu layout using a 9 button page as my home page. I'm trying stop that page from rotating, but all others are okay. I've made the above changes but all that seemed to happen was it stopped all pages from rotating.
 
Aescleah
Code is Art
Profile
Posts: 43
Reg: Sep 15, 2011
Earth
430
like
02/08/12 05:28 AM (13 years ago)
Oops! I'm sorry there was a mistake in the code I gave you above (inverted TRUE and FALSE values)... I just edited it, and it should work fine now!
 
guidoverduci
Lost but trying
Profile
Posts: 68
Reg: Dec 29, 2011
NorCal
680
like
02/08/12 12:25 PM (13 years ago)
still not working for me. I know nothing about code, so I assumed that where you had placed BT_screen_rssReader class, I replaced with BT_screen_menuButtons class. My home page is menu buttons and it's the only menu buttons in my app. Is this correct? It's still either all rotate or none when I change it in the core properties via buzztouch.
 
Aescleah
Code is Art
Profile
Posts: 43
Reg: Sep 15, 2011
Earth
430
like
02/08/12 01:23 PM (13 years ago)
Yes, you assumed correctly. Regarding the core properties via buzztouch, you should set the Allow rotation property to 'All devices allow rotation'. Then, modifying the code as indicated above should do the work. If you keep having problems, maybe you could copy-paste the piece of code where the modifications are required (the whole (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation method), and I'll see if there's anything wrong with it.
 
guidoverduci
Lost but trying
Profile
Posts: 68
Reg: Dec 29, 2011
NorCal
680
like
02/08/12 02:30 PM (13 years ago)
ok, here's what I got. -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { //[BT_debugger showIt:self:[NSString stringWithFormat:@shouldAutorotateToInterfaceOrientation %@, @]]; //allow / dissallow rotations BOOL canRotate = TRUE; //appDelegate myapp_appDelegate *appDelegate = (myapp_appDelegate *)[[UIApplication sharedApplication] delegate]; UIViewController *theViewController; int selectedTab = 0; if([appDelegate.rootApp.tabs count] > 0){ selectedTab = [appDelegate.rootApp.rootTabBarController selectedIndex]; theViewController = [[appDelegate.rootApp.rootTabBarController.viewControllers objectAtIndex:selectedTab] visibleViewController]; }else{ theViewController = [appDelegate.rootApp.rootNavController visibleViewController]; } if([appDelegate.rootApp.rootDevice isIPad]){ canRotate = TRUE; }else{ //should we prevent rotations on small devices? if([appDelegate.rootApp.jsonVars objectForKey:@allowRotation]){ if([[appDelegate.rootApp.jsonVars objectForKey:@allowRotation] isEqualToString:@largeDevicesOnly]){ canRotate = FALSE; } if([theViewController isKindOfClass:[BT_screen_menuButtons class]]){ canRotate = TRUE; }else{ canRotate = FALSE; } } } //can it rotate? if(canRotate){ return YES; }else{ return (interfaceOrientation == UIInterfaceOrientationPortrait); } //we should not get here return YES; }
 
Aescleah
Code is Art
Profile
Posts: 43
Reg: Sep 15, 2011
Earth
430
like
02/08/12 03:29 PM (13 years ago)
Ok, maybe I confused you with my previous comments. In your code, you should have this: if([theViewController isKindOfClass:[BT_screen_menuButtons class]]){ canRotate = FALSE; }else{ canRotate = TRUE; } } This is the only thing you should change (the TRUE and FALSE values are inverted). However, because of your menu layout, maybe nothing will rotate. Unfortunately, I haven't tried it myself on such a layout. If this trick doesn't work and nothing rotates, then I'll try to come up with another way to do it!
 
guidoverduci
Lost but trying
Profile
Posts: 68
Reg: Dec 29, 2011
NorCal
680
like
02/08/12 03:35 PM (13 years ago)
Not sure what's going on, but whether I leave it or swap the true and false, it rotates no matter what. Thanks for your help though!
 
guidoverduci
Lost but trying
Profile
Posts: 68
Reg: Dec 29, 2011
NorCal
680
like
02/11/12 08:39 PM (13 years ago)
Any new ideas on this? I'm looking to just keep my home screen in portrait, everything else can rotate. I'm using a non-tabbed layout and my home screen is button menu. Thanks!
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
05/21/12 10:42 AM (13 years ago)
@Aescleah this is some great code to control orientation/rotation. just starting to play with this myself. glad i came across your post. you broke this down very nicely. many thanks. I'm using it in my 2.0 Self Hosted now to stop rotation of specific screens. I can confirm it works with the BT_screen_menuListSimpleAdvanced screens. I'd love to apply this to my button screen next! (trying to see if i can figure out which screen to add the code to) i did notice one 'flaw' in the code. if the device is rotated already and you go BACK to the screen that you said 'do not allow rotation' it does display it rotated. if you refresh it then stops it from rotating. But i'm ok with that small glitch for the overall desired effect. again thanks for the great code example/explanation!
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
06/22/12 11:38 AM (13 years ago)
I'm trying to do this for my main screen which is a list menu, but when I enter if([theViewController isKindOfClass:[BT_screen_menuList class]]){ I get an error "use of undeclared identifier "BT_screen_menuList" I'm using BT1.5/tabbed layout and I want only the home screen to NOT rotate. Can you please advise?
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
04/04/13 07:36 PM (12 years ago)
Does this still work for iOS 6? Jake
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/09/13 10:43 AM (12 years ago)
@ Jake - how strange that 9 months later we would both be looking at the same thread :P Aescleah's tweak no longer works, but I figured out a different way to do it - go to BT_tabBarController.m and add this to the list of imports - #import "BT_strings.h" Then find this method - -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation Delete that ENTIRE method and paste the following one in its place - //should rotate -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { [BT_debugger showIt:self theMessage:[NSString stringWithFormat:@"shouldAutorotateToInterfaceOrientation %@", @""]]; //allow / dissallow rotations BOOL canRotate = FALSE; //appDelegate YOUR_DELEGATE_NAME *appDelegate = (YOUR_DELEGATE_NAME *)[[UIApplication sharedApplication] delegate]; BT_item *theScreenData = [appDelegate.rootApp currentScreenData]; if([[BT_strings getJsonPropertyValue:theScreenData.jsonVars nameOfProperty:@"itemType" defaultValue:@""] isEqualToString:@"ITEM_TYPE_OF_SCREEN"]){ canRotate = TRUE; }else{ if([appDelegate.rootApp.rootDevice isIPad]){ canRotate = FALSE; }else{ //should we prevent rotations on small devices? if([appDelegate.rootApp.jsonVars objectForKey:@"allowRotation"]){ if([[appDelegate.rootApp.jsonVars objectForKey:@"allowRotation"] isEqualToString:@"largeDevicesOnly"]){ canRotate = FALSE; } } } } //can it rotate? if(canRotate){ return YES; }else{ return (interfaceOrientation == UIInterfaceOrientationPortrait); return (interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown); } //we should not get here return YES; } So the only things you need to do to the above code are 1. Add your app delegate name in place of where it says YOUR_DELEGATE_NAME and 2. Add your screen's item type in place of where it says ITEM_TYPE_OF_SCREEN . For example, my screens item type is "Mac_image_gallery"
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
04/22/13 10:51 AM (12 years ago)
Happy to see that post...this is exactly the plugin I want to rotate, but unfortunately it doesn't work on me...I had already changed all the "canrotate" functions to "false". Is this the reason for the solution you gave that causes it not to work?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/23/13 01:16 PM (12 years ago)
Hey Georgios - are you testing on iOS 5.0/5.1? The code I posted is for those iOS versions - if you are testing on iOS 6.0 then rotation is controlled from the app delegate I got your message about the image gallery rotation - so the solution we were discussing in the previous thread is no longer working for you?
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
04/23/13 03:12 PM (12 years ago)
Yes exactly, Abs you're talking like you are in front of my screen.... Can I do anything on 6.0 ?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/23/13 03:22 PM (12 years ago)
Are you using a tab layout?
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
04/23/13 03:33 PM (12 years ago)
yes I do... Does this make a conflict?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/23/13 03:35 PM (12 years ago)
no that's good...if you weren't using a tabbed layout then none of that code would apply. Hmm..I'll try to figure it out
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
04/23/13 03:37 PM (12 years ago)
If there was a word to describe how I appreciate your passion and your support, I would use that... But I can't find any!!!!
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
04/25/13 08:09 AM (12 years ago)
How is it going Absentia? any news?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/25/13 03:35 PM (12 years ago)
I double checked the working code in my app against what I posted here - it's the exact same so I can't imagine what the issue might be. Are you getting any error messages? Also, you are replacing "YOUR_DELEGATE_NAME" and "ITEM_TYPE_OF_SCREEN" with your delegate and screen type, right? Keep in mind the code I posted above is only meant for iOS 5.0 & 5.1
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
04/26/13 07:09 AM (12 years ago)
no I'm not getting any error messages, everything works fine...but the only problem as I said above is that I'm on 6.1 :( . Can anything be done?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/26/13 08:46 AM (12 years ago)
Ok, here is what you need to do for iOS 6.0 and up - 1. Go to BT_tabBarController and paste the following code after the shouldAutoRotate method (just make sure you aren't pasting it inside another method) - -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAll; } 2. Go to your appDelegate.m and scroll way down to the bottom until you find the supportedInterfaceOrientationsForWindow method - replace that entire method with the following updated method - //supportedInterfaceOrientationsForWindow... -(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{ [BT_debugger showIt:self theMessage:[NSString stringWithFormat:@"supportedInterfaceOrientationsForWindow %@", @""]]; //allow / dissallow rotations BOOL canRotate = FALSE; //appDelegate YOUR_DELEGATE_HERE *appDelegate = (YOUR_DELEGATE_HERE *)[[UIApplication sharedApplication] delegate]; if ([[BT_strings getStyleValueForScreen:self.rootApp.currentScreenData nameOfProperty:@"itemType" defaultValue:@""] isEqualToString:@"Mac_image_gallery"]){ canRotate = TRUE; }else{ if([appDelegate.rootApp.rootDevice isIPad]){ canRotate = FALSE; }else{ //should we prevent rotations on small devices? if([appDelegate.rootApp.jsonVars objectForKey:@"allowRotation"]){ if([[appDelegate.rootApp.jsonVars objectForKey:@"allowRotation"] isEqualToString:@"largeDevicesOnly"]){ NSLog(@"%@", @"SHOULD NOT ROTATE"); canRotate = FALSE; } } } } //bitwise OR operator... NSUInteger mask = 0; // UNCOMMENT THIS TO SUPPORT iOS 6 SCREEN ROTATAIONS mask |= UIInterfaceOrientationMaskPortrait; mask |= UIInterfaceOrientationMaskPortraitUpsideDown; if(canRotate){ mask |= UIInterfaceOrientationMaskLandscapeLeft; mask |= UIInterfaceOrientationMaskLandscapeRight; } return mask; } Just tested this out and it definitely works
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
04/26/13 10:48 AM (12 years ago)
THIS WORKS OUT indeed!!!!!!!!!! MANY THANKS to you Absentia...You are the best. Only a little function error to that... If you rotate to landscape and see the pictures and then go back as you are, the whole app continues in landscape mode. And something more...what can we do for the tab bar to get disappeared when we tap on the photo? just like the nav bar!
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/04/13 04:15 AM (12 years ago)
there is also the option for using the landscape to a second screen. After: if ([[BT_strings getStyleValueForScreen:self.rootApp.currentScreenData nameOfProperty:@"itemType" defaultValue:@""] isEqualToString:@"Mac_image_gallery"]){ canRotate = TRUE; { put else if ([[BT_strings getStyleValueForScreen:self.rootApp.currentScreenData nameOfProperty:@"itemType" defaultValue:@""] isEqualToString:@"BTA_thumbViewer"]){ canRotate = TRUE;} and now it works for both mac_image gallery plugin and for the thumbviewer plugin Bu the problem persists...what can we do so that when the user presses the back button, then it turns in portrait position?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
05/07/13 09:10 AM (12 years ago)
@ Georgios - Didn't we cover that exact issue in a previous thread? I was under the impression that you had it working
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/07/13 10:21 AM (12 years ago)
no I don't think that it was the same issue...what I see now as a problem is that when you are viewing the images in landscape position if you keep being in landscape and press the back button it doesn't go automatically in portrait mode as it should be, but you have to turn the phone in portrait mode... I am sorry if I repeat myself but I don't think we've discussed the same issue before...if you find we did plz ignore my question!
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
05/07/13 10:36 AM (12 years ago)
Ah, well the thing is..if you are using a tab bar layout then that makes things a little more complicated. Do you have the link to the thread where we were talking about a similar issue before? I can't seem to find it
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/07/13 10:49 AM (12 years ago)
yes of course... I found these lines of code: -(BOOL)shouldAutorotate { return YES; } -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; } but can't find where to put them. the thread is: https://www.buzztouch.com/forum/thread.php?tid=7FEB35DBB58D059354CEC04&command=isSearching&currentPage=1&topicTitle=ios%20rotation&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= I also can't get the rotation of the two screens mentioned above for devices below 6.0
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
05/25/13 06:16 PM (12 years ago)
have you tried adding that code to the image gallery .m file?
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/26/13 02:20 AM (12 years ago)
yes I did but unfortunately, when I press the back button, if iphone is in landscape it keeps being in landscape the app too... :(
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
05/26/13 11:45 AM (12 years ago)
do you have the following lines in BT_tabBarController.m? (you're using a tab bar layout right?) - -(BOOL)shouldAutorotate { return [[self.viewControllers lastObject] shouldAutorotate]; } - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return [[self.viewControllers lastObject] preferredInterfaceOrientationForPresentation]; } -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAll; }
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/26/13 03:51 PM (12 years ago)
No I don't have them... And yes I'm in tab bar layout. Do I have to put them as they are somewhere specific? Or do I have to substitute some lines with them?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
05/27/13 12:04 PM (12 years ago)
No you don't need to put them anywhere specific..just paste them somewhere in there outside of a method. Let me know if that gets you anywhere
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/27/13 04:06 PM (12 years ago)
no unfortunately it doesn't...can't understand what's going on. If you say it should work, then it should...I trust you after all your great help you gave me...can't understand though!
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
05/28/13 12:10 PM (12 years ago)
Haha sorry I forgot my own original instructions for this. This code - -(BOOL)shouldAutorotate { return YES; } -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; } - actually should not be in your image_gallery.m screen. It should instead be in the screen that you are going BACK to from the image gallery. Does that make sense?
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/29/13 02:15 AM (12 years ago)
thanks absentia... I put the two codes described above. One at the BT_tabBarController.m and the other at the previous screen from the image gallery. But again nothing... Sorry for that. Don't want to waste your time but can't figure out that myself... Thanks again!!!
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
05/29/13 11:28 AM (12 years ago)
when you say you're going back to a previous screen, you don't mean you're switching tabs do you?
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/29/13 03:05 PM (12 years ago)
no of course, my friend... I press the back button. That's what I mean
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
05/29/13 03:16 PM (12 years ago)
I really don't know where to go from here..if you want to send me your project I can take a look at it - [email protected]
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/29/13 03:33 PM (12 years ago)
of course...I'm sending you right now!!!!
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
05/29/13 05:18 PM (12 years ago)
Hate to let you down man, but I'm struggling with this one. The code I posted works perfect in non-tab bar layouts, but I just can't get it to work in your app. It might even be the advanced simple menu plugin that you're using...I just don't know why it won't work. I wish I could help you, but this might be too complex for me..I don't know how deep into the tab bar code this issue goes. For now, your best bet might be to check other sites for answers. I got the original code from StackOverflow so you may find some answers there
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/29/13 05:27 PM (12 years ago)
thank you for your try man...and thank you also for the advice...but this isn't only happening on this plugin. it is also happening at the thumbviewer plugin (press the third button to navigate there from the home screen). so indeed maybe it has to do with the tab bar layout... maybe I'll post a new thread asking for it!
 

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.