我安装了两个用于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) 我的问题是,我想在数据库中存储一个有多个电话号码的人.对于数字的单个变量,每个只存储一个数字.现在,如果我想添加另一个电话号码,它将创建另一个具有相同细节但数量不同的新记录.我想一起显示所有这些数字.有人可以帮忙吗?
我创建了一个UIview类Xib来在我的表格的页脚视图中显示它。
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在行之间获得如此多的空间。
为 UITapGesture 设置委托发出警告
这是我的代码:
UITapGestureRecognizer *tapOtherPlayers = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapcollectionViewOtherPlayers:)];
tapOtherPlayers.delegate = self;
[tapOtherPlayers setNumberOfTapsRequired:1];
[collectionViewOtherPlayers addGestureRecognizer:tapOtherPlayers];
Run Code Online (Sandbox Code Playgroud) 以下是我的原始数组:
{
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)