Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
NSNotification 被 UITabBarController 多次调用
我有一个UITabBarController 有 4 个选项卡 这些选项卡中的每一个都是一个单独的UIViewController 我在这 4 个使用 VC 的每一个上都有对象NSNotification按下某个物体后执行动作 4 个 VC
ios
Objectivec
UITabBarController
nsnotificationcenter
iOS 11 - 键盘高度在键盘通知中返回 0
我一直在使用键盘通知 没有任何问题 并且获得了键盘的准确高度 void keyboardDidShow NSNotification notification CGSize keyboardSize notification userInf
ios
Objectivec
nsnotificationcenter
NSNotification移除观察者问题
我要么是大脑受损 要么是我对 NSNotificationCenter 缺乏一些了解 问题是 如果我创建一个观察者 并在下一行中尝试删除它 如下所示 NSNotificationCenter defaultCenter addObserve
iphone
Objectivec
ios
nsnotificationcenter
检测 iOS 中的旋转变化
我正在制作一个 iOS 应用程序 需要在旋转时进行一些界面重新排列 我试图通过实施来检测这一点 void orientationChanged NSNotification note 但这会在设备正面朝上或正面朝下时向我发出通知 我想要一种
ios
interface
nsnotificationcenter
screenrotation
autorotate
删除使用闭包语法按名称创建的通知中心观察者是否足够?
我有一些使用块 尾随闭包语法创建的通知 如下所示 NotificationCenter default addObserver forName NSManagedObjectContextObjectsDidChange object mo
swift
nsnotificationcenter
observers
从通知打开应用程序时不清除所有通知
根据我的要求 我想要旧的通知 我会给你一个例子 以便你更清楚 例如得到 Notification 1 Notification 2 Notification 3 然后我打开了Notification 3我不想清楚Notification 1
ios
swift
iphone
pushnotification
nsnotificationcenter
删除观察者不工作
我有下一个代码 implementation SplashViewVC void viewDidLoad super viewDidLoad self splashView backgroundColor UIColor colorWith
ios
Objectivec
nsnotificationcenter
iOS 检测系统音量变化。私有 API 与否? AVSystemController_SystemVolumeDidChangeNotification
可以听AVSystemController SystemVolumeDidChangeNotificationNSNotification 是否被视为 在 App Store 审核过程中 使用私有 API 在我的应用程序中 我需要显示和更新
DistributedNotificationCenter - 如何在应用程序之间传递数据?
我构建了两个应用程序 主 应用程序和一个支持它的 Finder 扩展 使用分布式通知中心我可以成功地在应用程序之间来回发布消息 并且注册的观察者事件会按预期触发 问题似乎是我无法通过该事件传递任何用户数据 所有文档都表明您可以通过NS词典
swift
MacOS
nsnotificationcenter
macoscatalina
iOS/iPhone 可达性 - 如何使用 Reachability.m/.h 仅检查互联网丢失/无法可达的情况
目前我正在使用苹果的reachability m h 的类并且它可以工作 除了它会通知我任何更改 因为我只想在网络无法访问时通知用户 目前 如果我有互联网连接 然后松开网络 它会告诉我 但是 当您重新连接到网络时 它也会告诉我 这是我不想要
ios
iphone
Objectivec
nsnotificationcenter
Reachability
即使观察者被删除,通知观察者也会被多次调用
当应用程序处于后台模式或手机处于睡眠状态并且收到 VoIP 推送时 AppDelegate 中的以下函数会引导用户 到UserTableViewController在应用程序中 并发布通知 viewDidLoad 中的通知观察者UserTa
ios
swift
cocoa
swift3
nsnotificationcenter
如何使用 addObserver 闭包方法在 Swift 5 中删除Observer
这是我的第一篇文章 我是日本 iOS 工程师 这个月刚入职 我有一个麻烦removeObserver的方法NotificationCenter在 Swift 5 中 我通过使用闭包类型将观察者添加到 ViewController VC ad
ios
swift
memorymanagement
Swift5
nsnotificationcenter
NSNotificationCenter 给出的键盘大小
我想在从 UISearchBar 调用的键盘上添加accessoryView 由于 UISearchBar 没有实现此属性 因此我刚刚创建了一个工具栏 下列的苹果的文档 https developer apple com library a
ios
nsnotificationcenter
uikeyboard
DeviceOrientation
不同app之间可以使用NSNotificationCenter进行通信吗?
应用程序可以内部使用NSNotificationCenter让不同的部分相互通信 但是可以扩展 以便不同的应用程序可以使用它来通信吗 Edit 对于 iOS 与 OSX 之间的混淆表示抱歉 我只添加了 iOS 标签 我不知道如何 谁 为什么
ios
nsnotificationcenter
对多个视图控制器中的一个观察者使用 NSNotificationCenter 选择器
我可以使用选择器吗getUpdate 在多个视图控制器中 我正在注册我的LevelViewController作为双方的观察者GameViewController and WinViewController 后 2 个视图控制器都有一个后退
ios
uiviewController
Notifications
nsnotificationcenter
iOS:为什么我们的应用程序有时不显示在通知中心?
这个问题有3种情况 在开发过程中 我可以重新启动iPhone并重新安装 应用程序来解决这个问题 首先 这个问题经常出现在越狱的iPhone上 所以我们 认为配置可能有问题 个人资料 但现在 越来越多的用户抱怨这个问题 无法接收推送 他们使用
ios
iphone
applepushnotifications
jailbreak
nsnotificationcenter
关闭 ModalViewController 后刷新父 ViewController
在我的 iOS 应用程序中 用户可以从列表中选择图像 然后会看到一个包含该图像和删除该图像的选项的模式 如果用户选择删除图像 她将返回到包含图像列表的原始视图控制器 然后我需要刷新原始 ViewController 以考虑已删除的图像 我尝
使用 Swift 通过键盘移动视图
我有一个应用程序 在视图的下半部分有一个文本字段 这意味着当我在文本字段中输入内容时 键盘会覆盖文本字段 我如何在打字时向上移动视图 以便可以看到我正在输入的内容 然后在键盘消失时将其移回到原来的位置 我到处都看过 但所有解决方案似乎都在
ios
swift
UIKit
nsnotificationcenter
uikeyboard
如何调试此错误:CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER?
我的应用程序中出现错误 我不知道如何解决 以前有人见过这个错误 Binary Image Name Address Symbol 0 RepZio 0x002bd302 testflight backtrace 1 RepZio 0x002
ios
Objectivec
nsnotificationcenter
移除观察员是强制性的(必要的)吗?
有一个观察者 我在整个应用程序生命周期中都需要它 我应该删除它吗 我认为GC应用程序关闭后将删除它 对吗 如果是的话 我什么时候删除它 在deinit 如果您为 iOS 8 及之前版本提供支持 你必须移除里面的观察者dealloc or v
ios
swift
nsnotificationcenter
1
2
3
»