In my app, a lock screen is used. Sometimes a UIAlertView
is shown, now when the user sends the app to the background and brings it in front again, the UIAlertview
is shown above the lock screen. Is there a possibility to add a UIViewController
's view above everything, i.e. above the UIAlertView
?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Set the z-index value of a jQuery autocomplete inp
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
There are three kind of UIWindowLevel, the biggest one will be shown above the other window.
So I suggest you use a UIWindow to create your lock screen and let it's window level bigger than
UIWindowLevelAlert
,Basically, their values are :
so that's why the alert view will show above the other window.have a try.
You should have like this
Whenever you want to hide the LockScreen window then simply hide it by setHidden:YES.