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.

  • 相关阅读:
    IPC机制key值的各位组成
    ctrl+c,ctrl+d,ctrl+z在linux中意义
    Linux x86_64与i386区别之 —— 内存寻址
    readdir_r()读取目录内容
    memmove和memcpy
    sscanf的应用
    获取CPU频率
    盘点十个超级实用的 JS 特性
    Java 类在 Tomcat 中是如何加载的?
    Java 类在 Tomcat 中是如何加载的?
  • 原文地址:https://www.cnblogs.com/dengchaojie/p/8442095.html
Copyright © 2011-2022 走看看