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

How to change the background #108

Open
electic opened this issue Dec 22, 2016 · 1 comment
Open

How to change the background #108

electic opened this issue Dec 22, 2016 · 1 comment

Comments

@electic
Copy link

electic commented Dec 22, 2016

First off, great component. I was able to figure out how to change the contentView's background by adding a custom view. However, the background around the contentView along with the arrow, is there an example on how to change that? Doing something like this, I lose the arrow:

SMCalloutBackgroundView *test12 = [[SMCalloutBackgroundView alloc] init];
test12.layer.cornerRadius = 10;
[test12 setBackgroundColor:[UIColor redColor]];
[self.calloutView setBackgroundView:test12];

@nfarina
Copy link
Owner

nfarina commented Dec 26, 2016

If you'd like to customize the background view, you'll need to handle drawing the arrow yourself as well. The background view is a bit complicated - your best bet would be to start with the included background view and customize it from there.

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