Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not showing on pushview #21

Open
mengheangrat opened this issue Jun 14, 2016 · 1 comment
Open

Not showing on pushview #21

mengheangrat opened this issue Jun 14, 2016 · 1 comment

Comments

@mengheangrat
Copy link

` let cartBarButton: UIBarButtonItem = UIBarButtonItem(title: "Test", style: UIBarButtonItemStyle.Plain, target: self, action: nil)//#selector(self.toggleLeft))
let attributes = [NSFontAttributeName: UIFont.fontAwesomeOfSize(25)] as Dictionary!
cartBarButton.setTitleTextAttributes(attributes, forState: .Normal)
cartBarButton.title = String.fontAwesomeIconWithName(.ShoppingCart)
cartBarButton.tintColor = CommonMainColor
self.navigationItem.rightBarButtonItem = cartBarButton

    let hub:RKNotificationHub = RKNotificationHub(barButtonItem: cartBarButton)
    hub.increment()
    hub.count = 90
    hub.setCircleAtFrame(CGRectMake(15, -5, 20, 20))
    **hub.pop()`**
@Lasithih
Copy link

Lasithih commented May 31, 2017

Found a solution. Use this

let imgView = UIImageView(image: UIImage(named: "ico_cart"))
self.btncart.customView = imgView
        
self.hub = RKNotificationHub(view: imgView)

 //additionally use these methods
self.hub?.scaleCircleSize(by: 0.7)
self.hub?.moveCircleBy(x: 5, y: 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants