2016年11月30日 星期三

NSString::取得字串長度(Get NSString Length)


NSString::取得字串長度(Get NSString Length)  

NSString *str1 = @"This is string A";
NSLog(@"Length of str1: %lu", [str1 length]);

執行結果:

沒有留言:

張貼留言