小编Sru*_*dam的帖子

应用程序的实现:openURL:sourceApplication:annotation

我在Xcode8发布之前开始研究应用程序然后切换,当我尝试使用Facebook登录登录应用程序时出现以下错误

应用程序的实现:openURL:sourceApplication:annotation:not found.请将处理程序添加到App Delegate中.类:GhostGab.AppDelegate

我检查了所有的设置,他们似乎很好.任何帮助将不胜感激

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    // Override point for customization after application launch.
    FIRApp.configure()
    FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
    return true
}

  func application(application: UIApplication, openURL url: URL, sourceApplication: String?, annotation: AnyObject) -> Bool {

    let facebookDidHandle = FBSDKApplicationDelegate.sharedInstance().application(
        application,
        open: url,
        sourceApplication: sourceApplication,
        annotation: annotation)
    // Add any custom logic here.
    return facebookDidHandle
}
Run Code Online (Sandbox Code Playgroud)

facebook ios appdelegate swift xcode8

3
推荐指数
1
解决办法
1190
查看次数

UITableView Swift不滚动Swift

UITableView Swift不滚动.伙计我有这个表视图有三个不同的单元格,表格视图在模拟器上渲染就好了但是当我滚动它时立即跳回到顶部.

导入UIKit

class WalkthroughScreen2ViewController: UIViewController , UITableViewDataSource,UITableViewDelegate {

    @IBOutlet weak var tableView: UITableView!

    override func viewDidLoad() {
        super.viewDidLoad()


        tableView.estimatedRowHeight = 300
        tableView.rowHeight = UITableViewAutomaticDimension
        tableView.scrollEnabled = true

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // Return the number of rows in the section.
        return 4
    }
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) …
Run Code Online (Sandbox Code Playgroud)

uitableview swift

1
推荐指数
1
解决办法
7166
查看次数

标签 统计

swift ×2

appdelegate ×1

facebook ×1

ios ×1

uitableview ×1

xcode8 ×1