Giter VIP home page Giter VIP logo

lkbadgeview's People

Contributors

newbdez33 avatar serahug avatar xcatsan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lkbadgeview's Issues

Podscpec for 1.2.0

Hello,

thank you for creating this badge view library.
It would be nice if you could update the podspec on the cocoa repo to version 1.2.0.

Thanks!

it's not a circle when text is "1"

image

    LKBadgeView *view = [[LKBadgeView alloc] initWithFrame:CGRectMake(50, 50, 50, 30)];
    [view setText:@"1"];
    [self.view addSubview:view];

    LKBadgeView *view2 = [[LKBadgeView alloc] initWithFrame:CGRectMake(80, 50, 50, 30)];
    [view2 setText:@"2"];
    [self.view addSubview:view2];

CocoaPods update

Hey there,

Thanks for the great badge. Save me lot of time!

Anyway, you've recently merged a nice pull request and it would be great to have it on CocoaPods. I know we already have version 1.0.0 there, but what about releasing a 1.1.0?

Don't know if it is you who update CocoaPods repo, but I think (not so sure) you need to create a new tag. Am I right?

Thanks in advance!
Vieira

Deprecation Warning iOS 7

sizeWithFont:(UIFont *) and drawAtPoint:(CGPoint *) withFont:(UIFont *) deprecation warnings when targeting iOS7.

addsubview overlapping

Hello,

Firstly I really love this much better than the standard badge so thanks! I add the below to my viewwillappear.

LKBadgeView* badgeView =[[[LKBadgeView alloc] initWithFrame:CGRectMake(262, 366, 65, 20)]autorelease];
[self.view addSubview:badgeView];
badgeView.text = [NSString stringWithFormat:@"%d", [theProducts count]];

However when the badge count reaches say 2 digits i.e 20 then I remove my objects from my array and the view loads again. It resets the count to 0 which is correct however when going from 2 digits or more to 1 digit you can see the badge is not resizing even though I am using: It looks like its adding another subview over the old subview for 2 digits in the background if that makes sense. I apologise if this is my fault loading it into the view like this maybe i somehow have to unload the subview when the view disappears?

self.widthMode = LKBadgeViewWidthModeSmall;

_adjustBadgeFrameWith crash

Error:
"* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'"

Location:

     - (void)_adjustBadgeFrameWith
     {
                 CGSize suffixSize = [LK_BADGE_VIEW_TRUNCATED_SUFFIX  sizeWithAttributes:@{NSFontAttributeName:self.font}];
                 ......
      }

self.font is nil

Code:

            LKBadgeView *badgeView =
            [[LKBadgeView alloc] initWithFrame:CGRectMake(cell.contentView.width - 10 - 50,
                                                          timeLabel.y + timeLabel.height + 10,
                                                          50,
                                                          20)];
            badgeView.tag = CellBadgeTag;
            badgeView.font = [UIFont systemFontOfSize:12.0f];
            badgeView.widthMode = LKBadgeViewWidthModeSmall;
            badgeView.horizontalAlignment = LKBadgeViewHorizontalAlignmentRight;
            badgeView.badgeColor = [UIColor redColor];
            badgeView.textColor = [UIColor whiteColor];
            [cell.contentView addSubview:badgeView];

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.