[NSConcreteNotification objectForKey:]: unrecognized selector sent to instan
来源:互联网 发布:linux把用户加入组中 编辑:程序博客网 时间:2024/05/22 08:20
发送消息,代码如下
-(void)isCloseFile:(NSString *)zipName downWhichLoadName:(NSString *)downName{ NSDictionary *dictionary = [[NSDictionary dictionaryWithObjectsAndKeys:zipName,@"zipName",downName,@"downLoadWhichOne", nil] copy]; NSObject *object = [dictionary objectForKey:@"zipName"]; if (object != nil) { NSLog(@"通过KEY找到的value是: %@",object); } NSObject *object2 = [dictionary objectForKey:@"downLoadWhichOne"]; if (object != nil) { NSLog(@"通过KEY找到的value是: %@",object2); } NSNotificationCenter * center = [NSNotificationCenter defaultCenter]; [center postNotificationName:KPUNZIP object:self userInfo:dictionary];}
接收消息,代码如下
NSDictionary *imformation = [[NSDictionary alloc] init]; imformation = (NSDictionary *)NSzipName; NSLog(@"imformation:%@",imformation); NSDictionary* text =[[NSDictionary alloc] init]; text = NSzipName.userInfo; NSLog(@"text%@",text); NSString * zipName = [text objectForKey:@"zipName"]; NSLog(@"zipName%@",zipName); NSString *downLoadWhichOne = [text objectForKey:@"downLoadWhichOne"]; NSLog(@"downLoadWhichOne:%@",downLoadWhichOne);
- [NSConcreteNotification objectForKey:]: unrecognized selector sent to instan
- [NSConcreteNotification objectForKey:]: unrecognized selector sent to instan
- 'NSInvalidArgumentException', reason: '-[__NSCFArray objectForKey:]: unrecognized selector sent to i
- IOS [NSNull objectForKey:]: unrecognized selector sent to [NSNull null]
- unrecognized selector sent to
- [xxx objectForKey:]: unrecognized selector sent to instance 错误的另类原因
- xcode 运行出现类似-[__NSCFString objectForKey:]: unrecognized selector sent to instance的调试方法
- iOS 崩溃问题[__NSCFConstantString objectForKey:]: unrecognized selector sent to instance 0x10b15a470
- 奔溃警告:-[__NSCFString objectForKey:]: unrecognized selector sent to instance 0x7a781910
- unrecognized selector sent to instance
- unrecognized selector sent to class
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to class
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to class
- unrecognized selector sent to instance
- IOS App资源路径
- 【转】Perl的die、warn、eval函数
- Android 菜单(OptionMenu)大全 建立你自己的菜单
- vlan面试题
- windows下VirtualBox的文件共享
- [NSConcreteNotification objectForKey:]: unrecognized selector sent to instan
- C#中bool与Boolean有什么区别?string和String区别?
- Hide and Don’t Display N/A Attributes in Magento
- 纳兰性德词
- 高富帅、黑木耳、屌丝、女屌丝、白富美???求解
- atoi实现
- 单片机汇编伪指令DATA和EQU的区别
- 最大流模板
- 25 个让 Java 程序员更高效的 Eclipse 插件