Xcode not autocomplete Swift analysis functions

I am trying to create an application written in Swift that uses Parse, but I realized that my Xcode no longer provides autocompletion for any of the Parse functions. The application is still compiling and building without problems on the iOS simulator, so I know that the framework is read / compiled correctly, but it is very difficult to develop without the ability to use the autocomplete functions, especially since the Reference API does not yet have Swift code.

In my current project, I added pod Parse to my subfile and thus added sdk this way. I also followed these instructions: http://blog.parse.com/2014/06/06/building-apps-with-parse-and-swift/ to create a file Appname-Bridging-Header.h, adding #import <Parse/Parse.h>there to import the header file. So I'm not sure what the problem is.

+4
source share
2 answers

There is some support for autocomplete Obj-C libraries with a bridge in the fast, but not yet ideal.

, PFQueryTableViewController "tableview" , UITableViewController PFQueryTableViewController :

override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!, object: PFObject!) -> PFTableViewCell!

, , , , /Xcode.

+1

, :

var gameScore : PFObject= PFObject (className: "GameScore" )

var gameScore = PFObject (className: "GameScore" ) PFObject

, XCode , .

0

Source: https://habr.com/ru/post/1544403/


All Articles