notificationcenter Questions
4
Solved
I'm getting some strange results when querying UIScreen.main.bounds.height after an orientation change. Maybe this isn't the correct way to do it.
I have an observer that listens for the NSNotific...
Glycoprotein asked 9/10, 2017 at 14:46
5
Solved
First it said that
'UIApplicationDidEnterBackground' has been renamed to
'UIApplication.didEnterBackgroundNotification'
and when I dot it,it said
Type 'Notification.Name' (aka 'NSNotific...
Odense asked 22/7, 2018 at 18:36
2
Solved
I want to listen to notifications when the app goes to the background and comes back. I'm trying to use the NotificationCenter publishers and have the SwiftUI view listen to them.
I can use a few m...
Kunming asked 1/1, 2020 at 12:26
4
There have been tons of questions on how to programmatically access the SMS messages stored in the iPhone. Doing a small research you will quickly and sadly find out that Apple won't let us develop...
Tomekatomes asked 24/7, 2015 at 3:9
1
Solved
I am having trouble trying to migrate my piece of code from Swift 3 to Swift 4.2
here is the current code to be migrated:
fileprivate func observeKeyboardNotifications() {
NotificationCe...
Lynching asked 28/9, 2018 at 3:42
3
Solved
I'm a little confused as what/when to do with expectationForNotification as opposed toexpectationWithDescription`. I've been unable to find any clear examples in swift for when and what you do with...
Lagrange asked 22/4, 2015 at 15:28
4
Solved
I'm learning Swift 3 and I'm trying to using NSNotificationCenter. Here is my code:
func savePost(){
let postData = NSKeyedArchiver.archivedData(withRootObject: _loadedpost)
UserDefaults....
Rodolphe asked 5/7, 2016 at 13:26
1
Solved
Is it just me, or did NotificationCenter become a hot mess in Swift 3? :)
I have the following setup:
// Yonder.swift
extension Notification.Name {
static let preferenceNotification = Notificat...
Dorkas asked 17/11, 2016 at 0:18
0
In my iOS app I want to know when the control or the notification center appears. Is there a notification specifically for this available? The notifications for applicationWillResignActive and appl...
Sulphur asked 15/4, 2015 at 8:19
1
I am having an issue when the control center appears on iOS 7. Basically, the applicationDidEnterBackground is fired when the control center appears.
However in my method, I would like to detect ...
Nieshanieto asked 26/5, 2014 at 14:25
2
Solved
When I make any iOS 8 Today Extension, there is an empty space on the left of approximately 48px, even if in Interface Builder I place a label on the left side at x=0.
I have seen that som...
Scheme asked 23/9, 2014 at 11:31
3
I'm using a UIView subclass in my Today widget. The view makes use of swiping gestures. However, these gestures either scroll the whole Notification Center up and down, or make the Notification Cen...
Disentangle asked 3/7, 2014 at 21:20
1
Solved
I'm working on a Today Extension for iOS8. My App Group is set up correctly and I can successfully use NSUserDefaults to send simple bits of data to my extension (using this tutorial).
In the stor...
Stimulant asked 21/9, 2014 at 19:33
2
I need that all notification will apear in notification center , and in my app only the notification received from background or when app is closed is presented in notification center.
Is that my ...
Kellda asked 10/7, 2012 at 8:18
1
Solved
Is it possible to remove the push notification from the notification center when one is clicked and the app launches?
Most apps seem to leave the notification in place. I read on another question ...
Novick asked 26/1, 2012 at 11:16
2
When I send out a PUSH notification to my app, it stays in the notification center in iOS 5.
How can I remove the notification from the notification center from within the app?
Stubborn asked 9/11, 2011 at 11:0
1
© 2022 - 2024 — McMap. All rights reserved.