想要在app启动和每次唤醒的时候 都能先跳到一个输入密码的界面 输入密码正确的时候才能进入主界面
现在有一个自己做的用来设置新密码的view 可不是全屏的 想问一下能否把这个view拉伸到全屏 实现密码解锁和重新设置密码两种功能
现在有一个自己做的用来设置新密码的view 可不是全屏的 想问一下能否把这个view拉伸到全屏 实现密码解锁和重新设置密码两种功能
解决方案 »
- malloc: *** error for object 0x6c3c5a4: incorrect checksum for freed object - ob
- app loader上传的问题
- OC内存管理引用计数的问题
- xcode发布显示App有错误,望大神问指点!
- ios开发 通过语音识别打开第三方应用例如微信、qq等
- 无法分离出.o文件
- iOS NSDictionary深度遍历,包含数组怎么办?
- iOS如果判断app在前台运行
- appstore 下载提示“此时无法下载,请稍候重试”
- iOS tableViewcell 嵌套CollectionView 的思路
- iOS审核反馈APP可能涉及侵权
- UIDocumentInteractionController不走代理方法!!
// 监听appdelegate中的
func applicationDidBecomeActive(_ application: UIApplication) {
// 获取到当前控制器
let currentController = // 自己获取
// present密码控制器
currentController.present....(passwordController, ...)
}
如此还能再passwordController中处理密码的业务
这样的好处是可以单独写一个controller,用来处理密码的输入和判断。
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}这方法中写逻辑
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}代码处理中,找到rootViewController,增加一个全屏 subview,然后bringsubviewtotop,处理密码事件完成后 removesubview。