拼音 名字 排序 a-z的比較 ( sortUsingComparator )


 NSMutableArray * array = [NSMutableArrayarrayWithObjects:@"ad",@"az",@"ac",@"ab",@"aa", nil];

    DLog("ar :: %@",array);

    [array sortUsingComparator:^NSComparisonResult(id obj1, id obj2) {

        return [obj1 localizedStandardCompare:obj2];

    }];

    DLog("ar :: %@",array);

畫線1:    

  //Define line width and cap

    CGContextSetLineWidth(ctx, TB_BACKGROUND_WIDTH);

    CGContextSetLineCap(ctx, kCGLineCapButt);

    CGPoint p1 =    CGPointMake(10, 10);

    CGPoint p2 =            CGPointMake(40, 10);

    CGPoint p3 =    CGPointMake(40, 30);

    CGPoint p4 =            CGPointMake(10, 30);

    CGPoint points[4] = {p1,p2,p3,p4};

   

    CGContextAddLines(ctx, points, 3);

畫線2:    

CGContextAddLineToPoint

比較:http://blog.sina.com.cn/s/blog_67a5e4720100yeky.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM