zoukankan      html  css  js  c++  java
  • Objective-C

    NSInteger不是对象, 转换为long匹配64位系统, 再组成字符串(%ld).

    NSString *inStr = [NSString stringWithFormat: @"%ld", (long)month];

    Note that on 64-bit processors, such as the new A7 chip, if your app is compiled for 64-bit, an NSInteger is actually a long, not an int. Doing the cast, (int)month would be destructive on 64-bit platforms for the generic case. If targeting Apple platforms exclusively, something similar that will work with both int and long – e.g. long.


    娱乐

  • 相关阅读:
    vue
    mongodb
    ejs模板引擎
    ajax
    node.js2
    node.js1
    bootstrap,ECMA
    商城
    面试:----Struts和springmvc的区别--区别上
    OpenStack
  • 原文地址:https://www.cnblogs.com/blfbuaa/p/7029265.html
Copyright © 2011-2022 走看看