2015-06-17 59 views
-1

我有一個應用程序,上面有很多標籤,表明用戶選擇的數字。這些數字顯示在標籤中。該應用的主要目標是將這些數字上傳到Parse數組中。上傳標籤數組中的字符串來解析

我想在應該走哪條路上有所幫助。我正在考慮一組標籤,但是我能夠上傳標籤的字符串嗎?

請詳細解釋。謝謝

回答

1

是的很簡單。我會研究關係。見他們的嚮導here

但是,如果你希望它是該用戶的數組這裏是你將如何做到這一點:https://parse.com/docs/ios/guide#relations-using-an-array

複製/粘貼:

OBJÇ

// let's say we have an author 
PFObject *author = ... 

// and let's also say we have an book 
PFObject *book = ... 

// add the author to the authors list for the book 
[book addObject:author forKey:@"authors"]; 

SWIFT

// let's say we have an author 
let author = ... 

// and let's also say we have an book 
let book = ... 

// add the author to the authors list for the book 
book.addObject(author, forKey: "authors") 

非常直截了當。如有疑問,請查看文檔。正如我所說,「Docs知道這一切」