pfobject

iOS Parse PFObject Subclassing with Swift Behaviour

别等时光非礼了梦想. 提交于 2019-12-02 09:54:15
I have a strange issue, my subclassing works in all my view controllers except one. I have imported everything that is required, but this one class is giving me the "Missing argument for parameter 'className' in call" My subclass import Foundation import Parse class Session : PFObject, PFSubclassing { class func parseClassName() -> String { return "Session" } } // i have removed the non important info I perform the Session.registerSubclass() In the app delegate In EVERY class I have i can create a session via var se = Session() But in this one class, this will not work. The class import UIKit

PFQuery pinAllInBackground:block: never completes

a 夏天 提交于 2019-12-01 08:29:08
问题 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 fetch: [followingsQuery findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { [PFObject pinAllInBackground:objects block:^(BOOL succeeded, NSError *error) { NSLog(@"er: %@", error); }]; ... //rest of my handler }]; However, the completion block (

Type arguments cannot be applied to non-parameterized class BFTask in PFAnalytics and PFObject

▼魔方 西西 提交于 2019-11-30 08:38:49
I've updated my project to iOS 9, my podfile, and all necessary files, but it will not build. The source of my grief is in the following error message: Type arguments cannot be applied to non-parameterized class 'BFTask' This is the only error that shows, but it shows up multiple times in both PFAnalytics.h and probably more importantly PFObject.h . Could someone tell me what this means and please suggest a solution? I hope I have provided enough information, but if not, let me know! The code samples are as follows: In PFObject.h and PFAnalytics.h , everywhere there is the following: (BFTask

Type arguments cannot be applied to non-parameterized class BFTask in PFAnalytics and PFObject

大城市里の小女人 提交于 2019-11-29 12:14:52
问题 I've updated my project to iOS 9, my podfile, and all necessary files, but it will not build. The source of my grief is in the following error message: Type arguments cannot be applied to non-parameterized class 'BFTask' This is the only error that shows, but it shows up multiple times in both PFAnalytics.h and probably more importantly PFObject.h . Could someone tell me what this means and please suggest a solution? I hope I have provided enough information, but if not, let me know! The code

Image within PFFile will be uploaded to parse instead of being saved into the local datastorage

こ雲淡風輕ζ 提交于 2019-11-29 02:45:27
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 the image doesn't get saved until I noticed I needed to call the save() method of the PFFile. Problem is that the Image then seems to be uploaded to Parse which I don't want. I want it to be stored on the local device.. Is there a solution for this? Thanks Edit: The code works like this: var spot = PFObject(className: "Spot") let imageData =

Save eventually on PFObject with PFFile (Parse Local Datastore)?

半城伤御伤魂 提交于 2019-11-28 06:35:42
Goal I am trying to save a PFObject that has a PFFile as an attribute. I am using the new Local Datastore for iOS, so I would like to save this PFObject with the saveEventually() method. The Problem The problem I am encountering is that the saveEventually() method doesn't seem to like saving the PFFiles . I tried to saveEventually() my object without any PFFile attached, and that worked fine. As soon as my PFFile was reattached, Xcode threw a couple of breakpoint notices (errors?) but did not terminate the app, and it appears as though all went well - however a check on the Parse Data Browser

Save eventually on PFObject with PFFile (Parse Local Datastore)?

巧了我就是萌 提交于 2019-11-27 01:25:04
问题 Goal I am trying to save a PFObject that has a PFFile as an attribute. I am using the new Local Datastore for iOS, so I would like to save this PFObject with the saveEventually() method. The Problem The problem I am encountering is that the saveEventually() method doesn't seem to like saving the PFFiles . I tried to saveEventually() my object without any PFFile attached, and that worked fine. As soon as my PFFile was reattached, Xcode threw a couple of breakpoint notices (errors?) but did not