mthoutai

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

    NSString *type = @"hello";

    NSString *subtype = @"good";

    NSString *typesub = [NSString stringWithFormat:@"%@>%@",type,subtype];

    NSString *typesub1 = [type stringByAppendingString:subtype];

    NSString *typesub2 = [type stringByAppendingFormat:@"%@>%@",type,subtype];

    NSString *a= @"abc" ;

    NSString *typesub3 = [type stringByAppendingFormat:@"%@>%@>%@" ,type,subtype,a];

    NSLog(@"%@,%@,%@,%@",typesub,typesub1,typesub2,typesub3,typesub3);

posted on 2017-05-25 20:01  mthoutai  阅读(305)  评论(0编辑  收藏  举报