nsnotificationcenter
NSNotificationCenter with arguments
I am implementing an Audio based application. In that I am playing two different sounds using two AVPlayers. I need to do different actions once the sounds played. For this I used NSNotifications. But[详细]
2023-03-25 10:30 分类:问答NSNotificationCenter and UITabBar app
Here\'s my problem: I have an app. It\'s based on four UITabBar views. On view 3 something happens and notification is being sent to NSNotificationCenter. There\'s an observer in view 1, which waits[详细]
2023-03-24 13:50 分类:问答Why does EAAccessoryDidConnectNotification occur twice?
I have a class that manages messages coming from and going to an external accessory to an iPad.In the init I have the following code:[详细]
2023-03-23 16:16 分类:问答Send NSNotification from classA to classB
So i have an app with an In App purchase. The In App purchase is managed in FirstViewController. When the user has purchased the product, i want to send out a Notification to my MainTableViewControlle[详细]
2023-03-23 04:58 分类:问答Is it possible to limit targets of NSNotification?
I want to send a NSNotification to a specific object (to self), without having other objects see / respond to it.[详细]
2023-03-21 10:00 分类:问答Pb with mpmovieplayercontroller
I need your help please: how can I delete this wihte line? NSString *AppFolderPath = [[NSBundle mainBundle] resourcePath];[详细]
2023-03-19 19:10 分类:问答iOS Application Architecture for a Web Service App
I am developing an application which is a client and is communicating with a web service. I am checking internet connection with Reachability class. If its avaliable, I set a bool as YES, its NO as de[详细]
2023-03-17 17:48 分类:问答Handling NSNotificationCenter notification is causing bad_access
I am subclassing the UIWindow of my app then when there is no activity from user I raise a notification using NSNotificationCenter.I am using[详细]
2023-03-17 03:28 分类:问答How to receive all notifications from an NSMetadataQuery running inside a plug-in (NSBundle)
I regularly use plug-ins (loaded NSBundles) to encapsulate some functionality. I now want to use NSMetadataQuery in one of my plug-ins, but ran into threading problems I\'m unable to solve.[详细]
2023-03-11 06:25 分类:问答NSNotificationCenter: is it possible for it to listen in to other classes that do not explicitly post Notifications?
I am trying to listen for UIViewController methods being triggered (-viewDidLoad, -viewDidAppear, -viewDidUnload, -viewDidDisappear and so on) without modifying the actual code in the methods. Is this[详细]
2023-03-10 02:54 分类:问答