摘要:
在cellforrow里面写的,发了一个通知,加载了好几次个人信息,只有在 cellforrow里面添加判断了,if (SharedAppDelegate.userInfo.albumArray.count == 0) {if (SharedAppDelegate.userInfo.albumArray.count == 0) { if (SharedAppDelegate.userInfo.albumArray.count == 0) { SharedAppDelegate.userInfo.albumArray = [NSMutableArray array]; } ... 阅读全文
摘要:
UILongPressGestureRecognizer* recognizer = [[UILongPressGestureRecognizeralloc] initWithTarget:selfaction:@selector(chooseImage:)]; recognizer.minimumPressDuration = .5f; [self.headerView.albumButton addGestureRecognizer:recognizer];// [self.setCoverNoticeBtn addGestureRecognizer:recognizer]; 阅读全文
摘要:
用了一个monitoring.jar插件,用哪个 archive.jar没有起到作用, 阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
- (void)sendSearchRequest:(NSString *)searchField{ NSXMLElement *iq = [NSXMLElementelementWithName:@"iq"]; NSXMLElement *query = [NSXMLElementelementWithName:@"query"]; [query addAttributeWithName:@"xmlns"stringValue:@"jabber:iq:roster"]; NSXMLElement *item = 阅读全文
摘要:
原来是搜索的服务没有安装, [iq addAttributeWithName:@"to"stringValue:@"search.localhost"];I am creating a XMPP sample on ios. What I am trying to do is search user over xmpp. I checked the opernfire server and it has the search plugin enabled. I gone throughXEP:0055and found the stanza. I als 阅读全文
摘要:
1,公网ip,http://www.whatip.com/2,局域网在iPhone中点击设置,进入WiFi网络设置画面,并确保WiFi已经打开。此时请连接到WiFi网络,然后点击右侧的蓝色箭头标志。此时应该就能看到你的内网IP地址了。在IP Address这一栏下,通过点击最右侧的Static可以让你的内网IP成为静态IP。这样使得你每次访问该网络时得到的内网IP保持不变。 阅读全文
摘要:
id responseObject = [TTCacheUtilobjectFromFile:CACHE_MAINPAGE_PERSONINFO]; if (responseObject) { SharedAppDelegate.userInfo = [UserInfo userInfoWithDic:responseObject]; [self initData];//显示个人信息 }#define CACHE_MAINPAGE_PERSONINFO [NSString stringWithFormat:@"person_info%d.json", SharedAppD. 阅读全文
摘要:
-(void)backAction:(id)sender{ [[NSNotificationCenterdefaultCenter]removeObserver:self]; [self.navigationControllerpopViewControllerAnimated:YES];} 阅读全文