• swift开发笔记31


    self.tableView.scrollToRow(at: IndexPath.init(row: 0, section: 0), at: .top, animated: true)

    self.tb.scrollRectToVisible(CGRect(x: 0, y: 48, self.tb.frame.size.width, height: self.tb.frame.size.width), animated: true)

     

    String(format : "%.0f%@", floor(sender.value), "%")// 如果要显示%,需要格式化%@

     

    isNaN//A Boolean value indicating whether the instance is NaN (“not a number”).

     

     

    string.components(separatedBy: CharacterSet(charactersIn:"0123456789").inverted).joined(separator: "")//Returns an array containing substrings from the string that have been divided by characters in the given set.

     

    NumberFormatter().number(from: self.returnAmountField().text!)// by parsing string using the receiver’s format, or nil if no single number could be parsed.

  • 相关阅读:
    redis list 清空记录小技巧
    fastJson 之 JSONPath使用
    【移动开发】怎样自己定义ViewGroup
    POJ 3255 Roadblocks
    java带图片的邮件发送方法实现
    android学习二(Activity)
    OpenWRT加入 crontab开机默认运行
    ubuntu14.04启动提示set_sw_state failed
    jekyll bootstrap更改主题theme
    windows API 实现截图
  • 原文地址:https://www.cnblogs.com/dengchaojie/p/8442095.html
Copyright © 2020-2023  润新知