我有以下兩個簡單的POJO: class Person {
String name
Address address;
//and of course the getter/setter for the attributes
}
class Address {
String city;
//also getter/setter for this
是否有可能一個NSattributedString帶附件(RTFD不是RTF)轉換爲ASCII,編輯流,並將其轉換回?到目前爲止,我能夠將RTFD轉換爲String流。但將其重新轉換爲NSData對象不起作用。這是我在操場上使用的代碼。 import Cocoa
func stream(attr: NSAttributedString) -> String? {
if let d =