ios - No objects fetched from Parse Array column when Edited in Data Browser -



ios - No objects fetched from Parse Array column when Edited in Data Browser -

i'm storing date array column in parse.com command expiration date of app's subscription.

1 - store date app parse's server. ex: [{"__type":"date","iso":"2014-10-23t02:23:55.730z"}]

2 - can read server. ok.

3 - edit value info browser. ex: [{"__type":"date","iso":"2015-10-23t02:23:55.730z"}]

4 - can no longer read it. nil when fetching on app.

parse not back upwards changing arrays info browser ? happening ?

update: code i'm using fetch , set date:

[[pfuser currentuser] fetch]; // pfuser *user = [pfuser currentuser]; // if date has been changed info browser, serverdate above homecoming 0 objects. nsdate *serverdate = [user[ksubscriptionexpirationdatekey] lastobject]; nsdate *localdate = [[nsuserdefaults standarduserdefaults] objectforkey:ksubscriptionexpirationdatekey]; // if ([serverdate compare:localdate] == nsordereddescending) { [[nsuserdefaults standarduserdefaults] setobject:serverdate forkey:ksubscriptionexpirationdatekey]; [[nsuserdefaults standarduserdefaults] synchronize]; } // nsdate *expirationdate = [[nsuserdefaults standarduserdefaults] objectforkey:ksubscriptionexpirationdatekey]; nsarray *arraytemp = [nsarray arraywithobjects:expirationdate, nil]; // [user setobject:arraytemp forkey:ksubscriptionexpirationdatekey]; [user saveinbackground];

i wanna able alter value in info browser can give users days on subscription, variety of reasons.

ios iphone arrays date parse.com

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -