Skip to content

Commit

Permalink
Merge pull request #22 from lfarah/patch-1
Browse files Browse the repository at this point in the history
Updated selector for Swift 2.2 and Xcode 7.3
  • Loading branch information
aryaxt committed Apr 24, 2016
2 parents e868e6d + 66123d0 commit d7dd512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ScrollPager/Source/ScrollPager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ import UIKit
for i in 0..<titleOrImages.count {
let button = UIButton(type: UIButtonType.Custom)
button.tag = i
button.addTarget(self, action: "buttonSelected:", forControlEvents: .TouchUpInside)
button.addTarget(self, action: #selector(ScrollPager.buttonSelected(_:)), forControlEvents: .TouchUpInside)
buttons.append(button)

if let title = titleOrImages[i] as? String {
Expand Down

0 comments on commit d7dd512

Please sign in to comment.