2013-03-30 26 views

回答

1

你的行數需要計數模型(陣列或字典計數)和形成串:

NSString *rowCountString=[NSString stringWithFormat:@"%d",[yourArray count]]; //or dictionary 

//if this is for osx 64 bit use %ld instead of %d 

然後顯示在標籤的字符串。

yourLabel.text = rowCountString; //UILabel ios 

[yourLabel setStringValue:rowCountString];//NSTextField as label osx 
+0

謝謝你的作品太棒了! –