zoukankan      html  css  js  c++  java
  • 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.

  • 相关阅读:
    域hash值破解的总结经验
    centos下安装ngnix+php+mysql服务
    方程式EQGRP_Lost_in_Translation工具之fb.py
    Bypass AV meterpreter免杀技巧
    跟我一起创建栈
    vue-cli3使用yarn run build打包找不到路径
    使用vue-cli3快速适配H5项目
    关于判断是安卓还是ios环境跳转下载页
    跟我一起学习webpack输出动态HTML(三)
    跟我一起学习webpack使用配置文件(二)
  • 原文地址:https://www.cnblogs.com/dengchaojie/p/8442095.html
Copyright © 2011-2022 走看看