systemButton(with:target:action:)
Creates and returns a system type button with specified image, target, and action.
Declaration
class func systemButton(with image: UIImage, target: Any?, action: Selector?) -> SelfParameters
- image:
The image for a system button.
- target:
The object that receives the
actionmessage. - action:
The action to send to
targetwhen this item is selected.
Discussion
This method is a convenience constructor for creating a UIButtonTypeSystem type button objects with a specific target and action.