function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kamlesh kumar 22kamlesh kumar 22 

CSFNetworkErrorDomain Code=404 "The requested resource does not exist"

Here is my code.....
Thanks 

@IBAction func saveAction(sender: AnyObject) {
        
                let fields = [
           "FirstName" : firstName,
            "LastName" : lastName,
            "Email" : email,
           "Phone" : phone,
           "Fax" : fax
        ]
        SFRestAPI.sharedInstance().performCreateWithObjectType("Contacts", fields: fields, failBlock: { err in
            dispatch_async(dispatch_get_main_queue(), {
                let alert = UIAlertController(
                    title: "Error",
                    message: err!.localizedDescription, preferredStyle: .Alert )
                _ = UIAlertAction( title: "OK", style: .Default, handler: { ( action : UIAlertAction! ) in
                    alert.dismissViewControllerAnimated(true, completion: nil)
                })
                self.presentViewController(alert, animated: true, completion: nil)
                })
            print( (err))
            self.requestForResources()
        }) { succes in
                        print(succes)
        }
           }
    
    func requestForResources() -> SFRestRequest {
        print(SFRestRequest)
        return SFRestRequest.init()
    }
    
    @IBAction func cancelAction(sender: AnyObject) {
        
    }
    
}