0
私はParse.comバックエンドをセットアップしました。私のiOSアプリケーションでは、私はこのバックエンドとの接続を持っており、格納されたオブジェクトを取得することができます。Parse.com〜PFObject to Array Swift
それぞれの特定のオブジェクトを配列に格納する必要があります。私のオブジェクトのそれぞれを返す
がlet queryToGetBuildings = PFQuery(className: "Building")
queryToGetBuildings.findObjectsInBackgroundWithBlock { (objects, error) -> Void in
if error == nil {
for object in objects!{
print("this is an object")
print(object)
}
} else {
print("something went wrong")
}
分離:
"this is an object"
<Building: 0x7f, objectId: yh, localId: (null)> {
BottomText = "Opened from";
BottomTextExtra = "05:00 until 22:00";
Category = Coffeebars;
MiddleText = "Suggestion:";
MiddleTextExtra = "Apple and cinnamon";
TimeToDestination = 5;
TopText = Starbucks;
}
"this is an object"
<Building: 0xr, objectId: Xj, localId: (null)> {
BottomText = "Fee per person (not for babies):";
BottomTextExtra = "0.20";
Category = Toilets;
MiddleText = "Men - Women - Babies";
MiddleTextExtra = " ";
TimeToDestination = 5;
TopText = "Bathroom 2 terminal A";
}
"this is an object"
<Building: 0pr, objectId: 2q, localId: (null)> {
BottomText = "Fee per person (not for babies):";
BottomTextExtra = "0.20";
Category = Toilets;
MiddleText = "Men - Women";
MiddleTextExtra = " ";
TimeToDestination = 8;
TopText = "Bathroom 3 terminal A";
}
Coffeebars
今の私は、次のコードを書かれている=カテゴリー:値、たとえば次のとおりです。 のは、私のキーは、オブジェクトを言ってみましょう
Key:Value = Category:Toiletsを持つオブジェクトのすべての情報を印刷して特定の配列に追加するにはどうすればいいですか?事前
Parse.comがシャットダウンすることは知っていますか? –