0
我還想寫兩行我的iphone標籤,我讀我應該做的是:標籤換行
NSString *received = [[NSString alloc] initWithFormat:@"Rocio\n,%@",[[NSString alloc] initWithData:receivedData encoding:NSASCIIStringEncoding]];
self.label.text = received;
因此,「\ n」是LF。
爲什麼它不工作?