zoukankan      html  css  js  c++  java
  • 1115 视频的阅读数目 更改

            NSString *readStr=[NSString stringWithFormat:@"%@", [newsLIST objectForKey:@"readnum"]];

            NSString  *readDa = readStr;

            if (readStr.length>=5) {

                NSInteger redNum = [readStr integerValue];

                NSString  *one,*two;

                NSInteger  onee = redNum/10000;

                one = [NSString stringWithFormat:@"%zd",onee];

                

                NSInteger  twoo = redNum%10000;

                twoo = twoo/1000;

                two = [NSString stringWithFormat:@"%zd",twoo];

                if (one.length>1) {

                    readDa=[NSString stringWithFormat:@"%@",one];

      

                }else{

                    readDa=[NSString stringWithFormat:@"%@.%@",one,two];

     

                

                }

                

            }else{

                readDa=[NSString stringWithFormat:@"%@", [newsLIST objectForKey:@"readnum"]];

                

            }

            

  • 相关阅读:
    org.json里实现XML和JSON之间对象互转
    Rhino-- JavaScript
    XStream -- a simple library to serialize objects to XML and back again
    [Groovy]转:Groovy 通过 isCase 方法进行分类
    [Groovy]static typing
    JavaScript Succinctly 读后笔记
    [Groovy] Private fields and methods are not private in groovy
    Android 学习之路和App开发框架
    Android自定义xml解析
    Android 动态生成对话框和EditText
  • 原文地址:https://www.cnblogs.com/gzz2016/p/6064490.html
Copyright © 2011-2022 走看看