我在使用xcode4.1在Obj-c中編程,我有一個包含數字的數組,並且我想要將它們全部可視化一個標籤......任何人都可以幫助我解決這個問題嗎? 謝謝!如何在標籤中查看數組的全部內容(xcode 4.1)
這是代碼:
combinedString=[[NSMutableArray alloc] init];
NSString *[email protected]"";
for (i=0; i<=textLength; i++) {
//character coding
char myChar = [myString characterAtIndex:i];
NSString *myCharS=[NSString stringWithFormat:@"%c", myChar];
int asciiCode=[myCharS characterAtIndex:0];
NSString *asciiS=[NSString stringWithFormat:@"%i", asciiCode];
[combinedString addObject:asciiS];
}
finalStringLabel=[NSString stringWithFormat:@"", [combinedString componentsJoinedByString:@"."]];
myLabel.text=finalStringLabel;
[combinedString release];
}
顯示你的代碼.. – 2013-05-06 07:51:35
你有什麼要面對的問題>? – iPatel 2013-05-06 08:42:29