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

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

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

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

        return [obj1 localizedStandardCompare:obj2];blog

    }];it

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

畫線1:    class

  //Define line width and capsort

    CGContextSetLineWidth(ctx, TB_BACKGROUND_WIDTH);tab

    CGContextSetLineCap(ctx, kCGLineCapButt);poi

    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

相關文章
相關標籤/搜索