Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 17    Views: 118

epicweb
Aspiring developer
Profile
Posts: 159
Reg: Aug 30, 2012
Glen Carbon
4,990
10/16/13 03:03 PM (12 years ago)

menu advanced -text cut off in ios7

menu advanced - text cut off in ios7 (not ios6)... any one have any ideas how to fix? <a href="https://dl.dropboxusercontent.com/u/102950489/LTF/2013/ltf.png">link</a>
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
10/16/13 03:54 PM (12 years ago)
I have the same problem with the Menu with image plug-in. Did you find a fix?
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
10/16/13 04:13 PM (12 years ago)
Head over to the BT_Core folder and open BT_cell_menuList.m. Search for this: //textView for description. no padding! Play around with this line until you like it: [descriptionLabel setContentInset:UIEdgeInsetsMake(-8,-8,0,0)]; I have mine set to: [descriptionLabel setContentInset:UIEdgeInsetsMake(0,0,0,0)];
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
10/16/13 04:27 PM (12 years ago)
I must note.. On a phone with 6.0 it does distort the lines a bit. But if its targeted for 7.0 only you're fine edit: I've changed my settings to the following and it looks fine both on iOS7 and 6. [descriptionLabel setContentInset:UIEdgeInsetsMake(-4,-4,0,0)];
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
10/16/13 04:27 PM (12 years ago)
Tried that but it doesnt seem to have done anything
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
10/16/13 04:30 PM (12 years ago)
Menu with image plugin? I will have to check. I'll post back.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
10/16/13 04:31 PM (12 years ago)
@Chris It is in the Menu With Image folder : WB_cell_menuList.m same as instructions as my first post. I would replace it with -4,-4 to achieve best results
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
10/16/13 04:33 PM (12 years ago)
Yes I've found it and that's sorted my problem. Thanks a lot!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
10/16/13 04:34 PM (12 years ago)
NO problem! Welcome to Buzztouch!
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
10/17/13 01:54 AM (12 years ago)
Thanks @mysps, I tried that and it helped me too. I have noticed on IOS7 the title and description line up just fine, on IOS 6 the description is slightly to the right. Is there an easy tweak for this too? Thanks, Alan
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
10/17/13 07:54 AM (12 years ago)
I had the same problem and have yet to find a solution. If do, I will write back.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
10/17/13 08:32 AM (12 years ago)
There are quite a few little foibles that have surfaced with IOS 7; hopefully 3.0 will come out soon and fix these things.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
10/18/13 04:37 PM (12 years ago)
Instead of doing all this tomfoolery (no insult intended), I prefer to simply target iOS 6 until the v3 drops into place. Results in less stress all around. Also, gives you a reason to provide an update to the app within the next few months, which is another built-in marketing opportunity. Glass is half-full :-) -- Niraj
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
10/18/13 05:02 PM (12 years ago)
True at @Niraj but some (including a few apps of mine) want to upgrade their apps to iOS7. No problem in adding the tomfoolery to an app (half-baked) and upgrading it again with a better reason (v3)! Optimized code and BT 3.0 iOS Core sweetness.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
10/18/13 05:09 PM (12 years ago)
I get ya, @mysps! You just wanna improve your already awesome sleuthing and coding skills! hahahaha :-) Keep on trucking ...
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
10/18/13 05:23 PM (12 years ago)
lol :)
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
01/21/14 06:26 AM (12 years ago)
This is all solved in the menu with image plugin from Susan, so just replace the following code in the menu advanced plugin CR_menuAdvanced_cell.m: //textView for description. no padding! descriptionLabel = [[UITextView alloc] init]; [descriptionLabel setClipsToBounds:YES]; [descriptionLabel setBackgroundColor:[UIColor clearColor]]; [descriptionLabel setEditable:FALSE]; [descriptionLabel setUserInteractionEnabled:FALSE]; [descriptionLabel setShowsVerticalScrollIndicator:FALSE]; [descriptionLabel setShowsHorizontalScrollIndicator:FALSE]; [descriptionLabel setContentInset:UIEdgeInsetsMake(0,0,0,0)]; [descriptionLabel setTextAlignment:NSTextAlignmentLeft]; descriptionLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth; [self.contentView addSubview:descriptionLabel]; with this code: //textView for description. no padding! descriptionLabel = [[UITextView alloc] init]; [descriptionLabel setClipsToBounds:YES]; [descriptionLabel setBackgroundColor:[UIColor clearColor]]; [descriptionLabel setEditable:FALSE]; [descriptionLabel setUserInteractionEnabled:FALSE]; [descriptionLabel setShowsVerticalScrollIndicator:FALSE]; [descriptionLabel setShowsHorizontalScrollIndicator:FALSE]; if ( floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1 ){ [descriptionLabel setContentInset:UIEdgeInsetsMake(-8,-4,0,0)]; } else { [descriptionLabel setContentInset:UIEdgeInsetsMake(-8,-8,0,0)]; } descriptionLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth; [self.contentView addSubview:descriptionLabel];
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/21/14 07:28 AM (12 years ago)
FYI, I've notified Chris about this earlier via his new bug tracker system and logged it in the BT 3.0 bugs 'sticky' post - I'm hoping he will update the plugin. Cheers, Alan
 

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.