|
//
// MineAboutViewController.swift
// PaiAi
//
// Created by zhengjianfei on 16/4/7.
// Copyright © 2016年 FFIB. All rights reserved.
//
import UIKit
import PaiaiDataKit
import PaiaiUIKit
struct AboutWebModel {
}
final class MineAboutViewController: UIViewController {
// MARK: Storyboard property
@IBOutlet var versionLabel: UILabel!
@IBOutlet weak var scoreBtn: UIButton!
@IBOutlet weak var scoreLabel: UILabel!
// MARK: view function
override func viewDidLoad() {
super.viewDidLoad()
// scoreLabel.text = UserDefaults.Account.bool(forKey: .isAudit) ? "敬请期待" : "给我评分"
// scoreBtn.isEnabled = !(UserDefaults.Account.bool(forKey: .isAudit))
versionLabel.text = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(true)
// titleWithbackBar = "关于"
}
// MARK: Storyboard button function
@IBAction func giveFen() {
guard let url = URL(string: "https://itunes.apple.com/cn/app/pai-aipaiai/id1163960351?mt=8") else {
return
}
UIApplication.shared.openURL(url)
}
@IBAction func contactUs(_ sender: UIButton) {
// let about = UIStoryboard.mine.instantiateController(AboutWebViewController.self)
// about.url = "http://xfoto.com.cn/page/contact_us"
// about.title = "联系我们"
// navigationController?.pushViewController(about, animated: true)
}
@IBAction func userAgreement(_ sender: UIButton) {
// let about = UIStoryboard.mine.instantiateController(AboutWebViewController.self)
// about.url = "http://xfoto.com.cn/page/user_agreement"
// about.title = "用户协议"
// navigationController?.pushViewController(about, animated: true)
}
}
extension MineAboutViewController: NavigationBackViewController {}
|