Uygulamamız açıldıktan sonra uygulamayı kullanırken tuş kilidinin devreye girmesini istemiyorsak ve uygulama açık kaldıkça ekranında hep açık kalmasını istersek aşağıdaki kodu appDelegate içerisine yazmamız çözüm olacaktır;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
UIApplication.shared.isIdleTimerDisabled = true//Ekran hep açık kalacaktır | |
} |
Hiç yorum yok:
Yorum Gönder
Yorumunuz için teşekkür ederim.