Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 65

Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
01/04/14 04:58 PM (11 years ago)

Extra Space on Menus

Hi All, I am using the Advanced Menu with Image, and noticed that under BT3.0 iOS, there is about 1/2 of an inch gap from the nav bar to the beginning of the rows. Does anyone have a solution? Jake Configuration: Rounded Menu Boxes, No Header Image
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
01/04/14 05:39 PM (11 years ago)
screen shot please, thanks
 
bigPaul
Lost but trying
Profile
Posts: 103
Reg: Mar 08, 2013
Darwin
4,530
like
01/04/14 06:48 PM (11 years ago)
sounds like it might be still spacing out for a header image to be inserted?
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
01/04/14 08:08 PM (11 years ago)
 
shak77
buzztouch Evangelist
Profile
Posts: 399
Reg: Jan 18, 2011
location unknow...
7,240
like
01/04/14 08:35 PM (11 years ago)
Maybe this?: https://www.buzztouch.com/forum/thread.php?tid=7F22211077732228210873D&command=isSearching&currentPage=1&topicTitle=&createdBy=shak77&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= I had a similar problem with the Menu with Buttons plugins, but I don't have the Advanced Menu with Image one so I don't know for sure. David
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/05/14 10:02 AM (11 years ago)
What happens if it is not a rounded menu? What happens if there is an image? Let us know the results of those experiments. I think MadRod had similar problems, ask him how he had solved it. Then let us know.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
01/05/14 10:20 AM (11 years ago)
OK: I figured it out: Cr_menu_advanced.m Below line 88, you need to override the value of theTop: Below this: //if navBar is hidden, move down 20 CGFloat theTop = 0; if ([[[BT_strings getStyleValueForScreen:self.screenData nameOfProperty:@"navBarStyle" defaultValue:@""]uppercaseString]isEqualToString:@"HIDDEN"]) theTop = 20; Add this: //Controls the position of the Table View theTop = -20; Then, if you want to give the tableview come padding on the sides, go to line 167, where you should see this: [self.myTableView setFrame:CGRectMake(0, imageHeight + theTop, imageWidth, tableHeight)]; Change it to this: [self.myTableView setFrame:CGRectMake(10, imageHeight + theTop, imageWidth-20, tableHeight)]; Does this help anyone? Jake
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/05/14 11:26 AM (11 years ago)
Is there a way to do it from the AppDelegate so that one does not have to modify Core files or Plugin files? Also, can you make your code be compatible with iOS 6 and with iOS 7? Finally, make a new post titled "Solved - ...." with the final solution. Put a link to that solution into the BT v3 bug report post. Thank you, - Niraj
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
01/06/14 09:27 AM (11 years ago)
For me, i had to use //Controls the position of the Table View theTop = -30; But it seems to work. Thank you for the link Niraj.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
01/06/14 05:29 PM (11 years ago)
@Madrod: This only controls the height. With iOS 6, rounded menus used to leave a slight border on the edges. Jake
 

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.