Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 62

NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
03/20/14 06:41 PM (10 years ago)

Pie Chart (XIB hint) and (random color fix)

No xib expert, but given a new tool to work with... The Description text displayed below the Pie Chart by default is Editable and Selectable. This causes a problem if the user taps and holds on the text causing the on-screen keyboard to appear. (Not good) You can change this behavior in Xcode via the XIB and the Attributes Inspector for the bottom descriptionText. Click on the placeholder text displayed, and then uncheck "Editable". Recommend you leave Selectable checked, as I had some unexpected text formatting chnages. EDIT: Just reread fusionsch comment from last night- already had posted same note. But maybe picture helps someone else. The Description Font size is also easily increased in the xib Attributes Inspector. https://www.dropbox.com/s/k7wxf0ruy1y2zmt/Screen%20Shot%20xib.jpg Note: If things go sideways, you can always remove reference to that xib and reload the original. ===== Plugins developers that use xib files really give you the power to customize for your app. This is a really cool plugin
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
03/20/14 07:41 PM (10 years ago)
The Random color fix is a quick typo fix around line 316 in CR_pieChart.m return should be "thisColor" - (UIColor *)pieChart:(XYPieChart *)pieChart colorForSliceAtIndex:(NSUInteger)index { BT_item *thisPiece = [self.menuItems objectAtIndex:index]; NSString *sectionColor = [BT_strings getJsonPropertyValue:thisPiece.jsonVars nameOfProperty:@"sectionColor" defaultValue:@""]; UIColor *thisColor = [self randomColor]; if (sectionColor.length>0) thisColor = [BT_color getColorFromHexString:sectionColor]; return thisColor; //corrected original code "return [self randomColor];" }
 
kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
like
03/20/14 09:24 PM (10 years ago)
@mustang -- I dare say you are indeed getting the hang of this technology! :-)
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
03/21/14 05:31 AM (10 years ago)
Thanks. Seems like small steps along the way. But in the right direction ;)
 

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.