小编Kru*_*ala的帖子

SDKApplicationDelegate使用未解析的标识符

我安装了两个用于Facebook登录的广告连播

pod 'FacebookCore'
pod 'FacebookLogin'
Run Code Online (Sandbox Code Playgroud)

而不是在appdelegate中导入FacebookCore。它仍然显示使用未解决的标识符错误。

未解决的标识符错误

我还在info.plist中实现了标签

<array>
<string>fb---------</string>
</array>
<key>FacebookAppID</key>
<string>-----------</string>
<key>FacebookDisplayName</key>
<string>-----------</string>
Run Code Online (Sandbox Code Playgroud)

仍然无法获取SDKApplicationDelegate。

func application(_ app: UIApplication, open url: URL,
                 options: [UIApplication.OpenURLOptionsKey: Any]) -> Bool {
    if SDKApplicationDelegate.shared.application(app, open: url, options: options) {
        return true
    }
    return false
}
Run Code Online (Sandbox Code Playgroud)

swift fbsdk fbsdkloginkit

12
推荐指数
2
解决办法
4144
查看次数

如何在sql数据库中的单个字段中存储多个值

我的问题是,我想在数据库中存储一个有多个电话号码的人.对于数字的单个变量,每个只存储一个数字.现在,如果我想添加另一个电话号码,它将创建另一个具有相同细节但数量不同的新记录.我想一起显示所有这些数字.有人可以帮忙吗?

sql

8
推荐指数
2
解决办法
4万
查看次数

如何在表格中显示自定义页脚视图?

我创建了一个UIviewXib来在我的表格的页脚视图中显示它。页脚视图

import UIKit

/// This class is to display footer view in a settings table view
class FooterView: UIView {
    override func awakeFromNib() {
        super.awakeFromNib()
    }
}
Run Code Online (Sandbox Code Playgroud)

我将其显示如下:

func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
    let view = FooterView(frame: CGRect(x: 0, y: 0, width: tableView.frame.size.width, height: 140))
    return view
}

func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
    return 100
}
Run Code Online (Sandbox Code Playgroud)

这有什么问题?我无法看到页脚视图并tableview在行之间获得如此多的空间。

在此处输入图片说明

uitableview ios tablefooterview swift

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

为 UIGestureRecognizer 设置委托发出警告

为 UITapGesture 设置委托发出警告

从不兼容的类型“TopPlayersViewController *const+strong”分配给“id<UIGestureRecognizerDelegate>_Nullable”

这是我的代码:

UITapGestureRecognizer *tapOtherPlayers = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapcollectionViewOtherPlayers:)];
tapOtherPlayers.delegate = self;
[tapOtherPlayers setNumberOfTapsRequired:1];
[collectionViewOtherPlayers addGestureRecognizer:tapOtherPlayers];
Run Code Online (Sandbox Code Playgroud)

objective-c ios uitapgesturerecognizer

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

uniqueUnionOfObjects 更改数组的顺序

以下是我的原始数组:

{
    FilePath = "Selfcare.jpg";
    ModuleId = 18;
    ModuleName = "Infant N Toddler";
    SkillLevelID = 59;
    SkillLevelName = "Self Care";
},
{
    FilePath = "Preschool.jpg";
    ModuleId = 18;
    ModuleName = "Infant N Toddler";
    SkillLevelID = 60;
    SkillLevelName = "Preschool Readiness";
},
{
    FilePath = "Learning_Primary.jpg";
    ModuleId = 22;
    ModuleName = Cognitive;
    SkillLevelID = 71;
    SkillLevelName = "Learning Readiness - Primary Skills";
},
{
    FilePath = "PreAcad_Primary.jpg";
    ModuleId = 22;
    ModuleName = Cognitive;
    SkillLevelID = 72;
    SkillLevelName = "Pre-Academics: Primary Skills"; …
Run Code Online (Sandbox Code Playgroud)

arrays sorting objective-c nsmutablearray ios

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