You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Jonas B.6
9 years agoNew member | Level 1
-canOpenURL: failed for URL: "dbapi-2://1/connect" - error: "(null)"
I installed everything like they say in this tutorial: And this is the output i get from xcode, when i try to sign in using the iPhone 6s simulator.
2016-02-06 22:05:42.592 DBDemo[16063:8923...
Jonas B.6
9 years agoNew member | Level 1
//
// ViewController.swift
//
import UIKit
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
@IBOutlet weak var tblFiles: UITableView!
@IBOutlet weak var bbiConnect: UIBarButtonItem!
@IBOutlet weak var progressBar: UIProgressView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
tblFiles.delegate = self
tblFiles.dataSource = self
progressBar.hidden = true
NSNotificationCenter.defaultCenter().addObserver(self, selector: "handleDidLinkNotification:", name: "didLinkToDropboxAccountNotification", object: nil)
func handleDidLinkNotification(notification: NSNotification) {
bbiConnect.title = "Disconnect"
}
if DBSession.sharedSession().isLinked() {
bbiConnect.title = "Disconnect"
}
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
// MARK: IBAction method implementation
@IBAction func connectToDropbox(sender: AnyObject) {
if !DBSession.sharedSession().isLinked() {
DBSession.sharedSession().linkFromController(self)
}
else {
DBSession.sharedSession().unlinkAll()
bbiConnect.title = "Connect"
}
}
@IBAction func performAction(sender: AnyObject) {
}
@IBAction func reloadFiles(sender: AnyObject) {
}
// MARK: UITableview method implementation
func numberOfSectionsInTableView(tableView: UITableView) -> Int {
return 1
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 0
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = UITableViewCell()
return cell
}
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
return 0.0
}
}
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,909 PostsLatest Activity: 2 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!