-
Notifications
You must be signed in to change notification settings - Fork 190
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
Comments
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
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];
The text was updated successfully, but these errors were encountered: