Browse Source

checkbox icons added

pull/1/head
gme_2 6 years ago
parent
commit
334161a896
  1. 21
      GMERemittance/Assets.xcassets/ccr/checked.imageset/Contents.json
  2. BIN
      GMERemittance/Assets.xcassets/ccr/checked.imageset/checked.png
  3. 21
      GMERemittance/Assets.xcassets/ccr/uncheck.imageset/Contents.json
  4. BIN
      GMERemittance/Assets.xcassets/ccr/uncheck.imageset/uncheck.png
  5. 6
      GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerification.storyboard
  6. 8
      GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift

21
GMERemittance/Assets.xcassets/ccr/checked.imageset/Contents.json

@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "checked.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
GMERemittance/Assets.xcassets/ccr/checked.imageset/checked.png

After

Width: 40  |  Height: 40  |  Size: 4.2 KiB

21
GMERemittance/Assets.xcassets/ccr/uncheck.imageset/Contents.json

@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "uncheck.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
GMERemittance/Assets.xcassets/ccr/uncheck.imageset/uncheck.png

After

Width: 40  |  Height: 40  |  Size: 2.0 KiB

6
GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerification.storyboard

@ -457,7 +457,8 @@
<constraint firstAttribute="width" constant="18" id="yBu-9i-TV0"/>
</constraints>
<size key="titleShadowOffset" width="15" height="15"/>
<state key="normal" image="right"/>
<state key="normal" image="uncheck"/>
<state key="selected" image="checked"/>
<connections>
<action selector="checkBoxButtonTapped:" destination="z1L-xE-OXS" eventType="touchUpInside" id="OgL-YN-SbG"/>
</connections>
@ -502,7 +503,8 @@
</scene>
</scenes>
<resources>
<image name="right" width="22" height="22"/>
<image name="checked" width="20" height="20"/>
<image name="uncheck" width="20" height="20"/>
</resources>
<color key="tintColor" red="0.78177064659999995" green="0.55228364470000002" blue="0.018981300289999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</document>

8
GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift

@ -77,10 +77,10 @@ class SendMoneyVerificationViewController: UITableViewController {
private func setup() {
// all setup should be done here
self.checkBoxButton.layer.borderColor = UIColor.red.cgColor
self.checkBoxButton.layer.borderWidth = 1
self.checkBoxButton.setImage(#imageLiteral(resourceName: "right"), for: UIControlState.selected)
self.checkBoxButton.setImage(nil, for: UIControlState.normal)
// self.checkBoxButton.layer.borderColor = UIColor.red.cgColor
// self.checkBoxButton.layer.borderWidth = 1
// self.checkBoxButton.setImage(#imageLiteral(resourceName: "right"), for: UIControlState.selected)
// self.checkBoxButton.setImage(nil, for: UIControlState.normal)
}
@IBAction func checkBoxButtonTapped(_ sender: UIButton) {

Loading…
Cancel
Save