@eddyborja
Keyboard cowboy. Hackernews reader. Vim user. You know the type.
A customizable badge for displaying metadata, especially in UITableViewCells. For iOS.
License: Other
i'm newbie and looking forward you solving it! nice day
Could you update the pod spec with the latest code base? It appears there is a 1.0 in the versions, but the pod spec is still referring to the 0.9 tag. There are a few updates that would benefit users.
This is a weird one and I am having a hard time trying to figure out why it is happening. If I debug my app from within the simulator or on the device, I do not get a crash, but if I install the app as an Adhoc app, I get a crash on line 286 of MLPAccessoryBadge.m. If I return 0 from that method and not allow it to calculate the luminance value, the crash does not occur.
Here is my code:
self.badgeView = [MLPAccessoryBadge new];
[_badgeView setCornerRadius:10];
[_badgeView.textLabel setFont:[GYFonts gothamFontWithSize:10.0f
andWeight:GYFontWeightMedium]];
[_badgeView setBackgroundColor:[GYStyles pomegranateRed]];
[_badgeView setStrokeWidth:0];
[_badgeView setTextSizePadding:CGSizeMake(10.0f, 0.0f)];
[_badgeView setBadgeInnerPadding:CGSizeZero];
[_badgeView setBadgeMinimumSize:CGSizeMake(20, 15)];
[_badgeView setShadowAlpha:0.0f];
[_badgeView setHighlightAlpha:0.0f];
[_badgeView setGradientAlpha:0.0f];
[_badgeView setTextColor:[UIColor whiteColor]];
[self.contentView addSubview:_badgeView];
This code is being run inside the init method of my table cell. Just to reiterate, it does NOT crash if I run it in the debugger, it only crashes when I run from an Adhoc build.
Hi,
I have noticed that master has the setBadgeHidden:YES feature. Can the podspec refer to a new tag with this feature?
Cheers
2013-12-19 09:32:18.628 MLPAccessoryBadgeDemo[12746:907] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
this is from xcode 5
Just ran into a crash in optimized-only builds, caused by the code in luminanceValueForColor:. The alpha value indexes &rgbValues[4] instead of &rgbValues[3]
CGFloat rgbValues[4];
[color getRed:&rgbValues[0] green:&rgbValues[1] blue:&rgbValues[2] alpha:&rgbValues[4]];
should be
CGFloat rgbValues[4];
[color getRed:&rgbValues[0] green:&rgbValues[1] blue:&rgbValues[2] alpha:&rgbValues[3]];
In accessoryPathInRect: the CGMutablePath doesn't seem to be released.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.