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"]];

                

            }

            

  • 相关阅读:
    css样式初始化代码总结
    linux LVM逻辑卷的创建,扩容,缩减和删除
    MAC Jenkins安装 + Xcode + 蒲公英 + Testflight
    Linux rsyslog工具
    linux 中 Vi 和 Vim 的使用
    Zabbix实战--监控Nginx、MySQL与VM esxi主机、vSphere Client、JAVA应用
    Linux下netstat命令详解
    Debian 10上使用UFW设置防火墙
    开源网络安全检测工具——伏羲 Fuxi-Scanner
    CentOS8的web终端-cockpit,通过Cockpit管理KVM虚拟机
  • 原文地址:https://www.cnblogs.com/gzz2016/p/6064490.html
Copyright © 2011-2022 走看看