Skip to content

Commit

Permalink
Update Bundle in CUUStartoptionView
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbernius committed Nov 17, 2018
1 parent 1419ea7 commit 10f3de2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CUU.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'CUU'
s.version = '2.0.1'
s.version = '2.0.2'
s.summary = 'CUU is a framework to help analyzing th usage of your applications.'

# This description is used to generate tags and improve search results.
Expand Down
7 changes: 2 additions & 5 deletions CUU/Classes/CUUCore/CUUStartOptionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,8 @@ class CUUStartOptionView: UIView {
button.addTarget(self, action: #selector(didTapDisableButton), for: .touchUpInside)

let bundle = Bundle(for: CUUStartOptionView.self)
if let url = bundle.url(forResource: "CUU",
withExtension: "bundle"), let bundle = Bundle(url: url) {
button.setImage(UIImage(named: "Checked.png", in: bundle, compatibleWith: nil), for: .selected)
button.setImage(UIImage(named: "Unchecked.png", in: bundle, compatibleWith: nil), for: .normal)
}
button.setImage(UIImage(named: "Checked.png", in: bundle, compatibleWith: nil), for: .selected)
button.setImage(UIImage(named: "Unchecked.png", in: bundle, compatibleWith: nil), for: .normal)

return button
}()
Expand Down

0 comments on commit 10f3de2

Please sign in to comment.