ios - 圆形微调器不显示
问题描述
下面是在表脚视图中设置圆形微调器约束的代码。现在,只显示下半部分。我怎样才能解决这个问题 ?
https://media.giphy.com/media/xptIqtvJdkKNlRAtrD/giphy.gif
tableView.contentInsetAdjustmentBehavior = .never
tableView.register(FriendsHeaderCell.self, forHeaderFooterViewReuseIdentifier: headerReuse)
tableView.register(UserCell.self, forCellReuseIdentifier: cellReuse)
tableView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(tableView)
tableView.snp.makeConstraints { (make) in
make.top.equalToSuperview().offset(10)
make.left.right.bottom.equalToSuperview()
}
// loading view for friends list
loadingIndicator = NVActivityIndicatorView(frame: .zero, type: .circleStrokeSpin, color: Constants.loadingIndictorColor)
loadingIndicator.translatesAutoresizingMaskIntoConstraints = false
tableView.addSubview(loadingIndicator)
loadingIndicator.snp.makeConstraints { (make) in
make.centerX.top.equalTo(tableView)
make.size.equalTo(Constants.loadingIndicatorSize)
}
}
解决方案
推荐阅读
- python-3.x - 运行时出现错误“NoneType”对象没有属性“成员”
- node.js - 数据库更新后通知 Socket 发送消息
- angular - 在 PrimeTemplate 中使用 PrimeNG p-cellEditor 但发生错误
- python - 如何在 Procfile 中表明 app.py 位于不同的文件夹中?
- keras - 用于多输出模型的预训练 CNN
- drupal - Twig 模板文件无法识别
- javascript - 如何在 Heroku 上写入环境变量
- android - Android 设备所有者错误:未知管理员:ComponentInfo
- griddb - 网格数据库连接问题
- mysql - 使用 FK 在 MYSQL 中创建触发器