ios - I have an object and need to access a component of it -


this odd question , there lot of code isn't included, feel given information pretty straight forward. think have been working many hours , brain gave need clearing up. have object called post , when print(post) get:

<post: 0x7fa483466610, objectid: dpxjagqlxd, localid: (null)> { acl = "<pfacl: 0x7fa48364eb20>"; caption = "this caption"; imagefile = "<pffile: 0x7fa483656a10>"; user = "<pfuser: 0x7fa4835cd9e0, objectid: hrc0uopbni>"; } 

i'm trying access caption. let me know if more code needed. working parse , swift. hoping showing output, can access caption easily. tried post.caption , doesn't work, while post.acl does. feel should able access since can print off caption should accessible. sorry dumb question think brain turned off couple of hours ago.

did write class post object? i'm assuming didn't or know how access it's data.

perhaps caption private variable, in case there should getter returns value of caption. try

post.getcaption()  

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -