ios - Swift: setObject a struct array on Parse -


i using swift & parse.

i have class :

public struct order {     public var item: string     public var price: double     public var comment: string } 

i know can store array of strings or ints. possible store array of orders in parse?

to store data use code :

var team = pfobject(classname: "team")  team.setobject(*list of orders*, forkey: "players") 

developers can subclass pfobject more native object-oriented class structure. strongly-typed subclasses of pfobject must conform pfsubclassing protocol , must call before [parse setapplicationid:clientkey:] called. after returned pfquery , other pfobject factories.

in plain english reasonable man:

swift

class order : pfobject, pfsubclassing 

obj-c

@interface order : pfobject, pfsubclassing 

Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -