Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
01/23/18 08:01 PM (6 years ago)

Figured out why the menu was cut off at the bottom in CR Menu Advanced plugin

BT 4 Xcode 9 iOS 10 + multiple size simulators The problem was that in the CR Menu Advanced plugin, the menu would be cut off about 1/3 the way from the bottom of larger phone screens. It was like the menu disappeared behind the background image cutting off longer menus. cr_menu_advanced Cr_menu_advanced.m Around line 100 imageHeight = [[BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"imageHeight" defaultValue:@"150"] intValue]; imageWidth = [UIScreen mainScreen].bounds.size.width; imageHeight = (int)(imageHeight/570.f * [UIScreen mainScreen].bounds.size.width); if([UIScreen mainScreen].bounds.size.height == 568) { tableHeight = 568 -imageHeight; }else{ tableHeight = 736 -imageHeight; (was 468) } } } if([UIScreen mainScreen].bounds.size.height == 568) refers to the screen height of iPhone 5 (568 pts) }else{ tableHeight = 468 -imageHeight; the “else” statement referred to a screen height less than the iPhone 4s (480 pts) I set the 468 to 736 (6s,7s,8s) height Works in simulatior for all sizes Works with Header Image turned off too Not sure what I'm doing but it seems to be working! Dave
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/24/18 12:00 AM (6 years ago)
Just keep doing it! ;) Cheers! -- Smug
 
MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
like
01/26/18 01:15 PM (6 years ago)
Many thanks!
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
02/01/18 03:39 PM (6 years ago)
I just tried this fix and it worked great, but it reduced my header image to half the size. Any ideas?
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
02/01/18 04:32 PM (6 years ago)
Hi Becky, I'm not able to replicate your problem but I've already reduced the size of my header image. Perhaps if you make your header image larger it will fit. I'm using a 1536 x 400 header image and made it fit using the instructions from one of my other posts. https://www.buzztouch.com/forum/thread.php?fid=6CE21F675E3065ED935D21A&tid=6CE21F675E3065ED935D21A For me it makes a perfect header in all simulator phone sizes. I'm using Xcode 9 and iOS 8 and above. Dave
 

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.