腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(6571)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
NSNotificationCenter
现在,我正在尝试写一个函数,当键盘出现在屏幕上时,将帧上移。我开始使用NSNNotificationCenter。我的代码工作正常,但不正确。当键盘出现时,我的formView正在向上移动,但当我开始在formView中编辑下一个textField时,formView再次向上移动。我的代码出了什么问题?谢谢。 NSDictionary *userInfo = [aNotification userInfo]; CGRect frame = self.form
浏览 1
提问于2012-04-04
得票数 1
回答已采纳
1
回答
Swift
NSNotificationCenter
?
我刚开始使用
NSNotificationCenter
,所以我很难理解到底是怎么回事。field.layer.borderWidth = 0.5
浏览 0
修改于2015-02-02
得票数 0
1
回答
NSNotificationCenter
澄清
有谁能告诉我怎样才能在
nsnotificationcenter
做这件事吗?self.txtCity.delegate = self; { [[
NSNotificationCen
浏览 2
提问于2015-03-19
得票数 1
回答已采纳
2
回答
NSNotificationCenter
添加?
这里是我的viewDidLoad[[
NSNotificationCenter
defaultCenter] addObserver:self selector:@selector(ReloadBadgeNotification:) name:@"reload
浏览 3
修改于2011-04-18
得票数 1
回答已采纳
2
回答
NSNotificationCenter
问题
有没有办法知道一个对象是否已经注册为特定通知的观察者?在我的实现中,我必须动态地添加和删除观察者。由于某些原因,存在一个随机问题,即侦听器收到两次相同的通知。我知道我必须检查我的代码,但如果我知道这些信息,对我来说修复起来会更容易。谢谢。
浏览 0
提问于2010-12-07
得票数 3
回答已采纳
3
回答
无法删除
NSNotificationCenter
我使用2
NSNotificationCenter
,为了避免保留周期,我创建了如下所示的weakSelf:__unsafe_unretained AugmentedRealityViewController*weakSelf = self; }
浏览 2
提问于2015-11-09
得票数 1
回答已采纳
2
回答
NSNotificationCenter
帮助?
我有一个读取条形码的类,当我读取条形码时,我会向
NSNotificationCenter
发送一个通知,如下所示。-(void)barcodeData:(NSString *)barcode type:(int)type { [[
NSNotificationCenter
[[
NSNotificationCenter
defaultCenter] addObserver:self selector:@selector(BarcodeRead) name:@"Barcod
浏览 0
修改于2011-11-06
得票数 1
回答已采纳
4
回答
滥用
NSNotificationCenter
NSNotificationCenter
真的很酷,我们可以用它构建非常可扩展的应用程序。我的问题是:我们是否可以在应用程序中滥用使用
NSNotificationCenter
,即大量使用它,或者它不是一个真正的好选择?
浏览 0
提问于2011-11-17
得票数 5
1
回答
NSNotificationCenter
不工作
我想在Swift 2.0中使用
NSNotificationCenter
.They do not call来调用一个方法。我是Swift的新人。请帮帮忙。任何帮助都会得到重视。let landingView = NewsViewController(nibName : "NewsViewController", bundle: nil) } override func viewDidLo
浏览 0
修改于2015-10-26
得票数 1
1
回答
NSNotificationCenter
不工作
weatherViewController alloc] initWithForecast:[[Forecast alloc] initWithForecastInCurrentLocation]]; } [[
NSNotificationCenter
forecastChanged" object:nil
浏览 1
修改于2013-02-15
得票数 0
2
回答
NSNotificationCenter
多次调用
我在我的应用程序中实现了
NSNotificationCenter
。当图像解码完成时,我会发送通知。//初始化{ if (self) { }`- (void) dealloc [[
NSNotificationCenter
defaultCenter] re
浏览 1
修改于2015-04-20
得票数 7
回答已采纳
1
回答
NSNotificationCenter
对象UILabel
[选择器名称:@
NSNotificationCenter
(MySubViewNotification:) defaultCenter:@“MySubViewNotification”object:nil
浏览 6
提问于2014-02-22
得票数 0
1
回答
在userInfo中传递
NSNotificationCenter
通知的空
NSNotificationCenter
我正在使用
NSNotificationCenter
传递这些数据,以在应用程序的其他地方触发表中的更新。NSInvalidArgumentException',原因:'* -__NSPlaceholderDictionary initWithObjects:forKeys:count::尝试从objects1插入零对象‘ 如何通过
NSNotificationCenter
nil;//[NSIndexPath indexPathForRow:0 inSection:0]]//The problem
浏览 2
修改于2018-06-15
得票数 1
回答已采纳
1
回答
NSNotificationCenter
和didReceiveRemoteNotification
我对
NSNotificationCenter
和didReceiveRemoteNotification有一些问题。当我收到来自APNS的新通知时,我想打开我的ViewController。application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo [[
NSNotificationCenter
kDidReceiveRemoteNotification} NewsDetailV
浏览 3
提问于2015-08-27
得票数 2
回答已采纳
1
回答
iOS -
NSNotificationCenter
延迟
基本上,我试图创建一个应用程序,允许用户通过谷歌或Facebook登录。我已经成功地创建了整个登录过程,但是在显示Facebook配置文件图像时,我有一个小问题。因此,当用户选择登录Facebook或Google (从firstViewController.swift)登录时,他们会被发送到一个新的视图控制器(secondViewController.swift),在那里他们可以看到当前的Facebook配置文件图片(只有在使用FB登录的情况下),并且他们还可以选择使用按钮登录。另外,当他们登录到FB或Google时,他们可以关闭应用程序,当他们再次打开应用程序时,他们会被带回到第二个视图控制
浏览 1
修改于2017-03-25
得票数 0
回答已采纳
1
回答
NSNotificationCenter
内存泄漏
我正在使用Instruments分析我的应用程序,并注意到泄漏将以下代码标记为内存泄漏: postNotificationName:@"serverMessage" 更准确地说,被标记为泄漏的行是: [
NSNotificationCenter
浏览 1
修改于2012-04-25
得票数 2
1
回答
NSNotificationCenter
和ASIHTTPRequest
所以我初始化为代码: [[
NSNotificationCenter
defaultCenter] addObserver:self selector:@selector(processReadResponseHeaders[[
NSNotificationCenter
defaultCenter] postNotificationName:@"readResponseHeaders" object:self];//
浏览 0
提问于2010-05-15
得票数 0
回答已采纳
2
回答
NSNotificationCenter
和mapType
mapView.mapType = MKMapTypeHybrid;} 在ViewDidLoad中: [[
NSNotificationCenter
addObserver:self s
浏览 5
提问于2012-10-07
得票数 0
回答已采纳
2
回答
NSNotificationCenter
与SpriteKit
我使用
NSNotificationCenter
通知何时按下键盘上的键。当在场景之间移动时,如果在按下导致场景转换的键后,另一个键被按得太快,则应用程序会崩溃。LevelSelectScene.m [[
NSNotificationCenter
object:nil]; ... -(void)willMoveFromV
浏览 3
修改于2015-08-16
得票数 2
回答已采纳
1
回答
正确使用
NSNotificationCenter
?
所以: 谢谢
浏览 4
修改于2012-07-30
得票数 0
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券