Commit f53c604836507ebcc0323bb0824312d5e8acf43a
1 parent
66c02729
feat:set goal page UI
Showing
2 changed files
with
5 additions
and
5 deletions
HDFwear/Setting/Base.lproj/Setting.storyboard
... | ... | @@ -307,9 +307,9 @@ |
307 | 307 | <rect key="frame" x="386" y="18.5" width="13" height="13"/> |
308 | 308 | </imageView> |
309 | 309 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="5000" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4sI-g5-5Qk"> |
310 | - <rect key="frame" x="337.5" y="14.5" width="36" height="21"/> | |
311 | - <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/> | |
312 | - <color key="textColor" red="0.0" green="0.59999999999999998" blue="0.24313725490196078" alpha="1" colorSpace="calibratedRGB"/> | |
310 | + <rect key="frame" x="339.5" y="15" width="34" height="20"/> | |
311 | + <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="14"/> | |
312 | + <color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/> | |
313 | 313 | <nil key="highlightedColor"/> |
314 | 314 | </label> |
315 | 315 | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="qii-eK-rxE"> | ... | ... |
HDFwear/Setting/SetGoalsViewController.swift
... | ... | @@ -20,7 +20,7 @@ class SetGoalsViewController: UIViewController { |
20 | 20 | override func viewDidLoad() { |
21 | 21 | super.viewDidLoad() |
22 | 22 | title = LocString("目标设置") |
23 | - stepsLabel.text = "\(UserInfo.stepsGoal)" | |
23 | + stepsLabel.text = "\(UserInfo.stepsGoal)步" | |
24 | 24 | // Do any additional setup after loading the view. |
25 | 25 | } |
26 | 26 | |
... | ... | @@ -35,7 +35,7 @@ class SetGoalsViewController: UIViewController { |
35 | 35 | } |
36 | 36 | |
37 | 37 | private func updateGoal(_ steps: Int) { |
38 | - stepsLabel.text = "\(steps)" | |
38 | + stepsLabel.text = "\(steps)步" | |
39 | 39 | let user = UserInfo |
40 | 40 | user.stepsGoal = steps |
41 | 41 | AdminHelper.shared.updateUser(user) | ... | ... |