我已成功地做server side encryption在Amazon S3我的AWS KMS主密钥.所以我的问题是,如何做到client side encryption在Amazon S3使用iOS的AWS KMS 客户主键?
在此先感谢您的帮助!
amazon-s3 amazon-web-services swift awss3transfermanager aws-sdk
我正在使用Xcode8和研究OC mix swift项目
随着我的新viewController项目,我正在使用swift 2.3
我创建ViewController简单的创建新文件和(还有crate XIB文件)检查(所以它可以自动绑定VC因为我的过去的代码是OC所以我启动我的VC与
_theViewController = [[TheViewController alloc] init];
Run Code Online (Sandbox Code Playgroud)
并希望用@IBOutlet视图设置框架或其他初始化事物
它工作得很好(xib按照预期加载,在viewDidLoad中断后我可以在iOS 9和+中看到那些Outlet实例(不是nil)
但是在iOS 8下,只要viewDidLoad viewWillAppear viewDidAppear这些IBOutlet视图总是为零,并且在我评论所有初始化的东西后,它似乎只是没有加载我的xib视图,因为我想要
我已经尝试了一些我能找到但似乎没有用的解决方案(我确定xib与VC链接.(它毕竟是由xcode创建并链接)覆盖某些功能或其他一些希望强制加载它的方法)
任何建议将不胜感激T_T
PS:我没有使用故事板,只是使用这个xib tech 4快速可见的开发
我有一个示例代码,但不会显示每节的行,因为numberOfRowsInSection不再存在SWIFT 3。
我目前有 ff 代码:
let section = ["pizza", "deep dish pizza", "calzone"]
let items = [["Margarita", "BBQ Chicken", "Pepperoni"], ["sausage", "meat lovers", "veggie lovers"], ["sausage", "chicken pesto", "prawns", "mushrooms"]]
override func tableView(_ tableView: UITableView, titleForFooterInSection section: Int) -> String? {
return self.section[section]
}
override func numberOfSections(in tableView: UITableView) -> Int {
return self.section.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "tableCell", for: indexPath)
// Configure the …Run Code Online (Sandbox Code Playgroud) 我有一个UITableViewCell(.xib),在此单元格中有一个按钮,当按下按钮时,我想打开一个UIViewController。
图标是我的按钮
在我的TableViewController:
class DetalhaConsultaServidorViewController: UITableViewController {
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
...
let cell = Bundle.main.loadNibNamed("HistoricoClienteServidorTableViewCell", owner: self, options: nil)?.first as! HistoricoClienteServidorTableViewCell
...
return cell
}
Run Code Online (Sandbox Code Playgroud)
和我的CustomCell班级:
class HistoricoClienteServidorTableViewCell: UITableViewCell {
@IBAction func actionButton(_ sender: Any) {
//how open a UIViewController (xib or main.storyboard)?
}
...
Run Code Online (Sandbox Code Playgroud)
如何打开UIViewController(xib或main.storyboard)?
谢谢!
swift ×4
ios ×3
uitableview ×2
amazon-s3 ×1
aws-sdk ×1
dynamic ×1
objective-c ×1
swift3 ×1
xcode ×1
xib ×1