拼音 名字 排序 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