Skip to content

Commit

Permalink
Merge pull request xaviermerino#32 from ffchung/patch-1
Browse files Browse the repository at this point in the history
Memory Release After used
  • Loading branch information
xaviermerino authored Oct 31, 2017
2 parents 6d17695 + 2c59760 commit 5588c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Pod/Classes/XMSegmentedControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import UIKit

///The delegate of `XMSegmentedControl` must adopt `XMSegmentedControlDelegate` protocol. It allows retrieving information on which segment was tapped.
public protocol XMSegmentedControlDelegate {
public protocol XMSegmentedControlDelegate: class {
/// Tells the delegate that a specific segment is now selected.
func xmSegmentedControl(_ xmSegmentedControl: XMSegmentedControl, selectedSegment: Int)
}
Expand Down Expand Up @@ -57,7 +57,7 @@ public enum XMSegmentItemWidthDistribution {
@IBDesignable
open class XMSegmentedControl: UIView {

open var delegate: XMSegmentedControlDelegate?
weak open var delegate: XMSegmentedControlDelegate?
fileprivate var highlightView: UIView!

/**
Expand Down

0 comments on commit 5588c48

Please sign in to comment.