calloutview icon indicating copy to clipboard operation
calloutview copied to clipboard

Example of customization of background graphics.

Open cadizjavier opened this issue 10 years ago • 1 comments

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)

cadizjavier avatar Nov 19 '14 04:11 cadizjavier

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.

rousseauo avatar May 06 '15 03:05 rousseauo