Calypso Kid
Aspiring developer
Profile
Posts: 779
Reg: Mar 09, 2012
Upstate New Yor...
18,190
01/23/18 08:06 PM (10 months ago)

Adjusting the Header Image in CR Menu Advanced

The CR Menu Image Advanced plugin doesn't give an option to size the header image. It took up half of the screen.

cr_menu_advanced
Cr_menu_advanced.m


Around line 104

imageHeight = (int)(imageHeight/570.f * [UIScreen mainScreen].bounds.size.width);

Play with the 570.f to make image fit correctly

Haven’t figured out what exactly the 570.f* is yet though

One set, it sizes correctly on all simulator sizes


Chuggin along


Dave
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/24/18 12:01 AM (10 months ago)
Always appreciated!

Cheers!

-- Smug
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
02/01/18 04:45 PM (10 months ago)
Ah ha! Thanks Dave! I set it to 320 and it looks back to normal.
 

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.