首页 > 代码库 > 1115 视频的阅读数目 更改

1115 视频的阅读数目 更改

<style>p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo } p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; min-height: 21.0px } span.s1 { } span.s2 { color: #6122ae } span.s3 { color: #3d1d81 } span.s4 { color: #c91b13 } span.s5 { color: #c32275 } span.s6 { color: #703daa } span.s7 { color: #0435ff } span.s8 { font: 18.0px "PingFang SC"; color: #c91b13 }</style>

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

            

        }

        

1115 视频的阅读数目 更改