Tag for questions involving Parse Framework Object (a local representation of data persisted to the Parse cloud).
Questions tagged [pfobject]
247 questions
2
votes
0 answers
How to relate objects which are subclassed from PFObject?
I have two classes person and address. These two classes are subclassed from PFObject. How can I make a relation between these classes? Below is the code:
Person:
@interface Person : PFObject
@property(strong,nonatomic)NSString…

Pra Do
- 293
- 2
- 3
- 10
2
votes
1 answer
Parse Class Run Through For Loop
My app uses Parse.com for most of its services. The main screen has a PFTableViewController, showing all the objects of a certain class. I would like to add all of these as NSUserActivity, so I know I need to run it through a for loop, but for the…

user717452
- 33
- 14
- 73
- 149
2
votes
2 answers
AnyObject does not have a member named generator
I don't have enough reputation to post images
The problem is when I did the following
for object in objects { eg: ....
// [AnyObject] does not have a member named generator - It shows me
this error
}
And after my search in stackoverflow and…

Suprem Vanam
- 73
- 11
2
votes
2 answers
Appending strings into an array in Parse
I just learned how to store an array into a Parse Cloud using the example provided by the Parse Documentation:
gameScore.addUniqueObjectsFromArray(["flying", "kungfu"], forKey:"skills")
gameScore.saveInBackground()
Now, utilizing this logic, I want…

Jae Kim
- 625
- 3
- 12
- 23
2
votes
3 answers
Parse "unrecognized selector sent to instance" while accessing PFObject members
I've got a weird issue with accessing member fields using dot notation. Example:
SettingsModel
class SettingsModel: PFObject, PFSubclassing {
override class func initialize() {
struct Static {
static var onceToken :…

Tom
- 1,516
- 1
- 14
- 34
2
votes
0 answers
Error when trying to test Swift - PFObject using Quick
I need to write some quick test for a Swift-PFObject (using Subclassing), my class:
class Category: PFObject, PFSubclassing {
@NSManaged var name : String!
@NSManaged var detail : String!
@NSManaged var iconUrl : String!
@NSManaged var…

onix
- 84
- 4
2
votes
3 answers
Display image when UITableView is empty
I'm trying to display an image when my UITableView is empty, but for some reason the code won't run when the tableView is empty, though it's fine when there are cells:
// Configures cell
override func tableView(tableView: UITableView,…

Z-Man Jones
- 187
- 1
- 12
2
votes
1 answer
Create a new parse object without data in swift
Problem: I cannot create new PFObjects objectWithoutDataWithClassName:objectId: in swift, is this possible and if so how?
Context: I have a stored array of objectIds of parse objects that I want to use to populate a view but first I have to get each…

Joseph
- 35
- 5
2
votes
1 answer
Unable to Convert PFFile to UIImage
I am wondering if I have done anything wrong here.
I have a subclass of PFUser which has a property of profileImage, which is a PFFile
There are some cases when I don't save the profileImage right away to Parse and I only pin it to the…

JayVDiyk
- 4,277
- 22
- 70
- 135
2
votes
2 answers
Retrieve data of users from parse to show in tableview with swift
This is my code in swift
class UserViewController: UITableViewController {
var userArray: [String] = []
@IBOutlet weak var friendListTableView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
retrieveMessages()
…

sin90
- 171
- 1
- 12
2
votes
2 answers
PFFile? is not convertible to 'StringLiteralConvertible' 'AnyObject' is not convertible to 'String'
I just updated:
xcodeVersion 6.3 (6D570)
Swift 1.2 has messed up my word last night and apparently they have made some changes in either Swift or Parse.
I am confused I just don't know how to fix this issue... Need help please. If someone else has…

Second Son
- 1,481
- 1
- 15
- 26
2
votes
1 answer
Image within PFFile will be uploaded to parse instead of being saved into the local datastorage
I am using swift with the Parse Framework (1.6.2). I am storing data into the local datastorage. The data consists of a few strings and an image. This image will be stored within a PfFile and then will be added to the PfObject.
Now I wondered why…

Christian
- 6,961
- 10
- 54
- 82
2
votes
1 answer
'Found a circular dependency when saving.' when trying to save a pointer to existing Parse Object
I have a Post and a Comment class. I'm trying to save a comment, with pointer to the post object. I've got my post object's ID. Here is my code:
PFObject *comment = [PFObject objectWithClassName:@"Comment"];
comment[@"content"] = comment;
PFObject…

Can Poyrazoğlu
- 33,241
- 48
- 191
- 389
2
votes
0 answers
How to know if PFObject is removed from server?
Using iOS. In tableview I show users all of his contacts (those who are already on server and also those who are not). When he press on contact I must check if contact is on server. If it is then I need to remove it from parse. Else if it's not I…

Klemen
- 2,144
- 2
- 23
- 31
2
votes
2 answers
PFQuery pinAllInBackground:block: never completes
I have a Parse app and I want to enable local data store for caching/offline use. In my app delegate, I've set [Parse enableLocalDatastore];.
In my query (to the server), I'm making a normal query, but I'm pinning the results upon…

Can Poyrazoğlu
- 33,241
- 48
- 191
- 389