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

Example of customization of background graphics. #71

Open
cadizjavier opened this issue Nov 19, 2014 · 1 comment
Open

Example of customization of background graphics. #71

cadizjavier opened this issue Nov 19, 2014 · 1 comment

Comments

@cadizjavier
Copy link

In the README section there is a short how-to of how to customize the background graphics of the calloutview. I can't get quite well how to subclass or extend that in my own code.
Specifically in iOS 7+ the most i can do is change some backgrounds colors specifically in a local fork of my source code. As far as i see there isn't a public API to do those kind of things.

Can you show me some example code with the correct way to do this ?? (Customization of the background graphics)

@rousseauo
Copy link
Contributor

You can redefine your own SMCalloutBackgroundView class.

@interface CustomCalloutBackgroundView : SMCalloutBackgroundView

And simply set the background or anything you need to custom in the init.
You might need to use a contentView.

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