Skip to content

Commit

Permalink
Update README for Swift 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron McTavish committed Oct 17, 2016
1 parent 0ce5f24 commit 7924238
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.3'
use_frameworks!

pod 'BaseViewControllerSwift', '~> 1.0'
pod 'BaseViewControllerSwift', '~> 2.0'
```

Then, run the following command:
Expand Down Expand Up @@ -68,10 +68,10 @@ Use the `setupView()` function to add target/actions to controls, set dynamicall

```swift
override func setupView() {
super.setupView()

underlyingView.titleLabel.text = profile.name
underlyingView.finishedButton.addTarget(self, action: Selector("finishedButtonPressed:"), forControlEvents: .TouchUpInside)
super.setupView()
underlyingView.titleLabel.text = profile.name
underlyingView.finishedButton.addTarget(self, action: #selector(ProfileViewController.finishedButtonPressed(_:)), for: .touchUpInside)
}
```

Expand All @@ -81,9 +81,9 @@ Use the `setupAccessibility()` function to add dynamically generated accessibili

```swift
override func setupAccessibility() {
super.setupAccessibility()

underlyingView.profileImage.accessibilityLabel = NSLocalizedString("Image of", comment: "") + " " + profile.name
super.setupAccessibility()
underlyingView.profileImage.accessibilityLabel = NSLocalizedString("Image of", comment: "") + " " + profile.name
}
```

Expand Down

0 comments on commit 7924238

Please sign in to comment.