JSBadgeView icon indicating copy to clipboard operation
JSBadgeView copied to clipboard

customize the bage size

Open zxwcool opened this issue 9 years ago • 6 comments

if u want to customize the bage size, set the badgeMinWidth property to a nonzero value, if u want to use the default size, just not set any value to the badgeMinWidth property.

zxwcool avatar Jan 01 '16 04:01 zxwcool

Hi!

What's the purpose of the changes in this pull request?

JaviSoto avatar Jan 01 '16 10:01 JaviSoto

some times the superview has a small size, so I want to make the badge size smaller to fit the superview it badged, and I could control the badge size at any time I want.

zxwcool avatar Jan 02 '16 02:01 zxwcool

I'm not sure I understand. Maybe post a couple of screenshots to show this? On Fri, Jan 1, 2016 at 6:47 PM Coding Dog [email protected] wrote:

some times the superview has a small size, so I want to make the badge size smaller to fit the superview it badged, and I could control the badge size at any time I want.

— Reply to this email directly or view it on GitHub https://github.com/JaviSoto/JSBadgeView/pull/56#issuecomment-168359501.

Javier Soto

JaviSoto avatar Jan 02 '16 02:01 JaviSoto

it looks like this, if U don't change the size of the badge, but the view U want to badged has a very small size, it will looks like the picture shown. first

zxwcool avatar Jan 02 '16 03:01 zxwcool

but I want to make the size of the badge and the size of the view have a right proportion, so I change the size of the badge by give some new value to the badgeMinWidth property. now it looks like this second

zxwcool avatar Jan 02 '16 03:01 zxwcool

why I always got this error "The command "gem install cocoapods" failed and exited with 1 during ."?

zxwcool avatar Jan 03 '16 03:01 zxwcool