炫舞家里怎么会有蟑螂 “getlogininfofail,retval:0”这是…

先锋游戏知道信息频道欢迎您
qq炫舞:炫舞怎么会有 “getlogininfofail,retval:0”这是怎么回事 怎么才能让他消失
[标签:] [◆害怕回?] [ 20:48:23] (<span id="tgd) (<span id="tfd) &&
不我 我我我
昵称: 验证码:
评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述
qq炫舞相关知识
qq炫舞经验
qq炫舞感兴趣的
qq炫舞其他问题1727人阅读
本文是阅读How To Integrate Cocos2D and UIKit后的总结,这篇教程里面cocos2d的版本比较老,和现在的模版有点差别,所以在重复上面的例子时候进行了相应的修改
原文地址为:/4817/how-to-integrate-cocos2d-and-uikit
Cocos2d新建的项目中,启动流程是这样的:
在SupportingFiles\main.m 中调用了如下方法
int retVal = UIApplicationMain(argc, argv, nil, @&AppController&);
启动的时候,UIKit创建了一个AppController的实例,然后AppController在applicationDidFinishLaunching方法中创建了main
// Create the main window
window_ = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
如果我们想从XIB文件启动的话,可以这样做:
把Supporting Files\main.m上UIApplicationMain的参数修改成nil
int retVal = UIApplicationMain(argc, argv, nil, nil);
这样,UIkit启动的时候,会根据Info.plist文件中的NSMainNibFile的&#20540;来加载相应的XIB文件
在Info.plist添加&#20540;
然后创建一个空的XIB文件
设置File’s Owner为UIApplication
然后拖一个Object对象进去设置成AppController类
这样,XIB就会生成一个AppController的实例
然后把File’s Owner的delegate设置为AppController
这样,UIApplication就会调用AppController的UIApplicationDelegate方法例如applicationDidFinishLaunching方法
如果想用XIB来创建UIWindow,那么将AppDelegate.h的代码改成:
@property (nonatomic, retain) IBOutlet UIWindow *
并将.m文件中的创建代码注释掉
// Create the main window
// window_ = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
在XIB文件拖一个window对象,绑定起来
接下来,用IB创建一个菜单界面,所以得先把这些代码先删了
// // Create a Navigation Controller with the Director
// navController_ = [[UINavigationController alloc] initWithRootViewController:director_];
// navController_.navigationBarHidden = YES;
// // set the Navigation Controller as the root view controller
// [window_ setRootViewController:navController_];
我在例子里多删了一个函数,结果导致了UITextfield输入不了文字
[window_ makeKeyAndVisible];
现在添加一个菜单viewController,把默认朝向改成Landscape
然后在里面放了1个背景图和2个按钮
在Xcode 4.5版本的里面,拖拽控件会有Constraints这个东西出现,在ios5的系统运行就会报错,如果想在ios6以下系统运行,必须在xib文件的这个选项取消掉Use
Autolayout
接下来打开MainWindow.xib添加一个NavigationController,并把window的rootViewController设置为它,MainMenuViewController设置为它的viewController。
接下来创建一个RootViewController,当点击View按钮时候,弹出这个界面,这个界面显示cocos2d的绘制界面
在RootViewController.m添加一个方法,将NavigationBar给隐藏了。
// Add new method
- (void) viewWillAppear:(BOOL)animated
[self.navigationController setNavigationBarHidden:YES animated:animated];
[super viewWillAppear:animated];
然后控制该界面的朝向
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
return UIInterfaceOrientationIsLandscape(interfaceOrientation);
在MainMenuViewController里面添加RootViewController对象,和点击处理方法
@interface MainMenuViewController : UIViewController
RootViewController *_rootViewC
@property (retain) RootViewController *rootViewC
-(IBAction)viewTapped:(id)
然后在MainMenuViewContoller.m文件里添加
- (void)showCocos2DView:(id)arg
if (_rootViewController == nil) {
self.rootViewController = [[[RootViewController alloc] initWithNibName:nil bundle:nil] autorelease];
[self.navigationController pushViewController:_rootViewController animated:YES];
-(IBAction)viewTapped:(id)sender
[self showCocos2DView:nil];
在XIB中把按钮处理函数绑定起来
然后在RootViewController中添加:
- (void)viewDidLoad
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
CCDirector* director_ = [CCDirector sharedDirector];
[self.view insertSubview:director_.view atIndex:0];
[director_ runWithScene:[HelloWorldLayer scene]];
[director_ startAnimation];
然后运行发现
通过调试发现,在创建AppDelegate里面创建CCGLView的时候,使用的CGRect(0,0,320,480)
在Cocos2d 2.0版本里,CCDirector类的父类是UIViewController,在朝向发生改变的时候,UIViewController的朝向相关的函数进行相应的处理,为了方便起见,我直接设置为CGRect(0,0,480,320)
CCGLView *glView = [CCGLView viewWithFrame:CGRectMake(0, 0, 480, 320)
pixelFormat:kEAGLColorFormatRGB565 //kEAGLColorFormatRGBA8
depthFormat:0 //GL_DEPTH_COMPONENT24_OES
preserveBackbuffer:NO
sharegroup:nil
multiSampling:NO
numberOfSamples:0];
然后在RootViewController.xib拖拽2个按钮,并在RootViewController里面添加-(IBAction)homeTapped:(id)sender方法
-(IBAction)homeTapped:(id)sender
[self.navigationController popViewControllerAnimated:YES];
将这个方法和按钮绑定,点击按钮就可以回到主菜单
接下来添加手势识别
添加点击,双击,左滑动,右滑动
在HelloWorldLayer.h里添加如下手势:
// HelloWorldLayer
@interface HelloWorldLayer : CCLayer &GKAchievementViewControllerDelegate, GKLeaderboardViewControllerDelegate&
UITapGestureRecognizer *_tapR
UITapGestureRecognizer *_doubleTapR
UISwipeGestureRecognizer *_swipeLeftR
UISwipeGestureRecognizer *_swipeRightR
@property (retain) UITapGestureRecognizer * tapR
@property (retain) UITapGestureRecognizer * doubleTapR
@property (retain) UISwipeGestureRecognizer * swipeLeftR
@property (retain) UISwipeGestureRecognizer * swipeRightR
HelloWorldLayer.m中添加
@synthesize tapRecognizer = _tapR
@synthesize doubleTapRecognizer = _doubleTapR
@synthesize swipeLeftRecognizer = _swipeLeftR
@synthesize swipeRightRecognizer = _swipeRightR
- (void)onEnter {
self.doubleTapRecognizer = [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleDoubleTap:)] autorelease];
_doubleTapRecognizer.numberOfTapsRequired = 2;
[[CCDirector sharedDirector].view addGestureRecognizer:_doubleTapRecognizer];
self.tapRecognizer = [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)] autorelease];
[_tapRecognizer requireGestureRecognizerToFail:_doubleTapRecognizer];
[[CCDirector sharedDirector].view addGestureRecognizer:_tapRecognizer];
self.swipeLeftRecognizer = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleLeftSwipe:)] autorelease];
_swipeLeftRecognizer.direction = UISwipeGestureRecognizerDirectionL
[[CCDirector sharedDirector].view addGestureRecognizer:_swipeLeftRecognizer];
self.swipeRightRecognizer = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleRightSwipe:)] autorelease];
_swipeRightRecognizer.direction = UISwipeGestureRecognizerDirectionR
[[CCDirector sharedDirector].view addGestureRecognizer:_swipeRightRecognizer];
- (void)onExit {
[[CCDirector sharedDirector].view removeGestureRecognizer:_tapRecognizer];
[[CCDirector sharedDirector].view removeGestureRecognizer:_doubleTapRecognizer];
[[CCDirector sharedDirector].view removeGestureRecognizer:_swipeLeftRecognizer];
[[CCDirector sharedDirector].view removeGestureRecognizer:_swipeRightRecognizer];
- (void)handleTap:(UITapGestureRecognizer *)tapRecognizer {
&&& CCLOG(@&Tap!&);
- (void)handleDoubleTap:(UITapGestureRecognizer *)doubletapRecognizer {
CCLOG(@&Double Tap!&);
- (void)handleLeftSwipe:(UISwipeGestureRecognizer *)swipeRecognizer {
CCLOG(@&Swipe Left!&);
- (void)handleRightSwipe:(UISwipeGestureRecognizer *)swipeRecognizer {
CCLOG(@&Swipe Right!&);
// on &dealloc& you need to release all your retained objects
- (void) dealloc
// in case you have something to dealloc, do it in this method
// in this particular example nothing needs to be released.
// cocos2d will automatically release all the children (Label)
[_tapRecognizer release];
_tapRecognizer =
[_doubleTapRecognizer release];
_doubleTapRecognizer =
[_swipeLeftRecognizer release];
_swipeLeftRecognizer =
[_swipeRightRecognizer release];
_swipeRightRecognizer =
// don't forget to call &super dealloc&
[super dealloc];
在这里需要说明的是,为了防止双击事件的第一次点击触发单击的相应函数,所以调用了这个方法:
[_tapRecognizer requireGestureRecognizerToFail:_doubleTapRecognizer];
Layer与RootViewController的通讯的话,把RootViewController的指针传给Layer就可以了。
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:22272次
排名:千里之外
原创:11篇
(2)(4)(3)(2)(8)新手园地& & & 硬件问题Linux系统管理Linux网络问题Linux环境编程Linux桌面系统国产LinuxBSD& & & BSD文档中心AIX& & & 新手入门& & & AIX文档中心& & & 资源下载& & & Power高级应用& & & IBM存储AS400Solaris& & & Solaris文档中心HP-UX& & & HP文档中心SCO UNIX& & & SCO文档中心互操作专区IRIXTru64 UNIXMac OS X门户网站运维集群和高可用服务器应用监控和防护虚拟化技术架构设计行业应用和管理服务器及硬件技术& & & 服务器资源下载云计算& & & 云计算文档中心& & & 云计算业界& & & 云计算资源下载存储备份& & & 存储文档中心& & & 存储业界& & & 存储资源下载& & & Symantec技术交流区安全技术网络技术& & & 网络技术文档中心C/C++& & & GUI编程& & & Functional编程内核源码& & & 内核问题移动开发& & & 移动开发技术资料ShellPerlJava& & & Java文档中心PHP& & & php文档中心Python& & & Python文档中心RubyCPU与编译器嵌入式开发驱动开发Web开发VoIP开发技术MySQL& & & MySQL文档中心SybaseOraclePostgreSQLDB2Informix数据仓库与数据挖掘NoSQL技术IT业界新闻与评论IT职业生涯& & & 猎头招聘IT图书与评论& & & CU技术图书大系& & & Linux书友会二手交易下载共享Linux文档专区IT培训与认证& & & 培训交流& & & 认证培训清茶斋投资理财运动地带快乐数码摄影& & & 摄影器材& & & 摄影比赛专区IT爱车族旅游天下站务交流版主会议室博客SNS站务交流区CU活动专区& & & Power活动专区& & & 拍卖交流区频道交流区
空间积分2 信誉积分349 UID641883阅读权限50积分4501帖子精华可用积分4507 专家积分10 在线时间1255 小时注册时间最后登录
小富即安, 积分 4501, 距离下一级还需 499 积分
帖子主题精华可用积分4507 专家积分10 在线时间1255 小时注册时间最后登录
论坛徽章:0
RT, 红色部分何意?
for my $digit (@digits) {
& && &&&$digit-&Write($tempfile);
& && &&&add_image(Image::Imlib2-&load($tempfile), -1);
& && &&&my @result = query_id(-1, 2);
& && &&&$retval .= $result[0]-&[0] + $result[1]-&[0] - -1;
& && &&&remove_id(-1);
我叹路长嗟日暮,学诗漫有惊人句
大丈夫当持三尺剑,杀尽天下贪官八百万,流血七千里,奈何在写perl
&&nbsp|&&nbsp&&nbsp|&&nbsp&&nbsp|&&nbsp&&nbsp|&&nbsp
空间积分2 信誉积分349 UID641883阅读权限50积分4501帖子精华可用积分4507 专家积分10 在线时间1255 小时注册时间最后登录
小富即安, 积分 4501, 距离下一级还需 499 积分
帖子主题精华可用积分4507 专家积分10 在线时间1255 小时注册时间最后登录
论坛徽章:0
$ cat todigits.pl
# todigits.pl
&&use Image::M
& &sub todigits {
& && &my ($n, $threshold, $w, $h, $x, $y) = (1,,1,2);
& && &my $filename = shift @_;
& && &my @retval = ();
& && &my $image = Image::Magick-&
& &&&$image-&Read($filename);
& &&&$image-&Quantize(colorspace =& 'gray');
& &&&$image-&Threshold(threshold =& $threshold, channel =& 'All');
& &&&for (my $i = 0; $i & $n; ++$i) {
& && && &my $digit = $image-&Clone();
& && && &$digit-&Crop(width =& $w, height =& $h, x =& $x + $i * $w, y =& $y);
& && && &$digit-&Trim();
& && && &push @retval, $
& &&&return @
我叹路长嗟日暮,学诗漫有惊人句
大丈夫当持三尺剑,杀尽天下贪官八百万,流血七千里,奈何在写perl
空间积分2 信誉积分349 UID641883阅读权限50积分4501帖子精华可用积分4507 专家积分10 在线时间1255 小时注册时间最后登录
小富即安, 积分 4501, 距离下一级还需 499 积分
帖子主题精华可用积分4507 专家积分10 在线时间1255 小时注册时间最后登录
论坛徽章:0
$ cat captcha.pl
# captcha.pl
require './todigits.pl';
use Image::Imlib2;
use Image::Seek qw(loaddb add_image query_id);
#use Image::Seek qw(loaddb add_image query_id remove_id);
& &my $dbname = 'captcha.db';
& &sub captcha {
& && &my $tempfile = &/tmp/captcha[$$]& . time . '.png';
& &&&my @digits = todigits(@_);
& &&&my $retval = '';
& &&&for my $digit (@digits) {
& && && &$digit-&Write($tempfile);
& && && &add_image(Image::Imlib2-&load($tempfile), -1);
& && && &my @result = query_id(-1, 2);
& && && &$retval .= $result[0]-&[0] + $result[1]-&[0] - -1;
& && && &remove_id(-1);
& &&&unlink $
& &&&return $
loaddb($dbname);
我叹路长嗟日暮,学诗漫有惊人句
大丈夫当持三尺剑,杀尽天下贪官八百万,流血七千里,奈何在写perl
空间积分0 信誉积分1639 UID阅读权限50积分3769帖子精华可用积分3769 专家积分10 在线时间6077 小时注册时间最后登录
小富即安, 积分 3769, 距离下一级还需 1231 积分
帖子主题精华可用积分3769 专家积分10 在线时间6077 小时注册时间最后登录
论坛徽章:71
字面意思减去-1?
拔剑四顾心茫然...
空间积分2 信誉积分349 UID641883阅读权限50积分4501帖子精华可用积分4507 专家积分10 在线时间1255 小时注册时间最后登录
小富即安, 积分 4501, 距离下一级还需 499 积分
帖子主题精华可用积分4507 专家积分10 在线时间1255 小时注册时间最后登录
论坛徽章:0
& & 不知道啥意思,没看懂
我叹路长嗟日暮,学诗漫有惊人句
大丈夫当持三尺剑,杀尽天下贪官八百万,流血七千里,奈何在写perl
空间积分0 信誉积分1319 UID阅读权限90积分10946帖子精华可用积分10946 专家积分0 在线时间2148 小时注册时间最后登录
大富大贵, 积分 10946, 距离下一级还需 9054 积分
帖子主题精华可用积分10946 专家积分0 在线时间2148 小时注册时间最后登录
论坛徽章:2
yybmsrs 发表于
字面意思减去-1?
再将其转换成字符连接到result后面
语言最爱 c、c++、java、php、javascript、perl、python、ruby...
数据库最爱 mysql、redis、memcached...
空间积分2 信誉积分349 UID641883阅读权限50积分4501帖子精华可用积分4507 专家积分10 在线时间1255 小时注册时间最后登录
小富即安, 积分 4501, 距离下一级还需 499 积分
帖子主题精华可用积分4507 专家积分10 在线时间1255 小时注册时间最后登录
论坛徽章:0
看着意思六四说的有道理。图像识别看来不好搞啊
我叹路长嗟日暮,学诗漫有惊人句
大丈夫当持三尺剑,杀尽天下贪官八百万,流血七千里,奈何在写perl
北京皓辰网域网络信息技术有限公司. 版权所有 京ICP证:060528号 北京市公安局海淀分局网监中心备案编号:
广播电视节目制作经营许可证(京) 字第1234号
中国互联网协会会员&&联系我们:
感谢所有关心和支持过ChinaUnix的朋友们
转载本站内容请注明原作者名及出处qq炫舞出现GetLoginInfo Fail,retval:0!怎么解决?下补丁没用。重新安装也没用!win+r调适也没用!win7_百度知道
qq炫舞出现GetLoginInfo Fail,retval:0!怎么解决?下补丁没用。重新安装也没用!win+r调适也没用!win7
我原来是用win7系统。也是和你一样的状况呢 我不管怎么弄都不行。然后有人叫我重新装驱动还是没用 然后,我就换回原来的电脑用了
没人会解决?原来XP的时候能玩!做完WIN7就不行了!
嗯。。这个应该没办法了。。。我都换电脑的。没用那个系统
其他类似问题
按默认排序
其他1条回答
这个问题只要先将原先的QQ炫舞完全卸载掉,再重新用最新程序安装遍就行。
qq炫舞的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁1, You can UPLOAD any files, but there is 20Mb limit per file. 2,
VirSCAN supports Rar/Zip decompression, but it must be less than 20 files. 3, VirSCAN can scan compressed files with password 'infected' or 'virus'.
Portuguese Brazil
Русский
укра?нська
Nederlands
Espa?ol (Latin America)
Server load
File information
File Name :
(File not down)
File Size :4 byte
File Type :text/plain
Scanner results
Scanner results:<font color="#%Scanner(s) (0/39)found malware!
Time: <font color="#14-09-07 01:39:13 (CST)
Engine Ver
Scan result
Found nothing
7.11.170.240
Found nothing
Found nothing
Found nothing
9.0.0.4157
9.0.0.4157
Found nothing
Found nothing
Found nothing
4.1.3.52192
Found nothing
Found nothing
bitdefender
Found nothing
Found nothing
Found nothing
Found nothing
5.0.2.3300
Found nothing
22.755, 22.755
Found nothing
6.5.1.5418
Found nothing
Found nothing
Found nothing
Found nothing
V1.32.31.0
Found nothing
Found nothing
Found nothing
Found nothing
Found nothing
Found nothing
Found nothing
9.500-1005
Found nothing
Found nothing
Found nothing
Found nothing
25.17.00.04
25.17.00.04
Found nothing
Found nothing
3.9.2589.2
3.9.2589.2
Found nothing
Found nothing
Found nothing
Found nothing
17.47.17308
1.0.2.2108
Found nothing
Found nothing
virusbuster
15.0.900.0
Found nothing
■Heuristic/Suspicious ■Exact
NOTICE: Results are not 100% accurate and can be reported as a false positive by some scannerswhen and if malware is found. Please judge these results for yourself.
Copy to clipboard
File upload
Please not close this windows,
If you do not have to upload response time, make sure you upload files less than 20M
You can view the results of the last scan or rescan

我要回帖

更多关于 家里怎么会有蟑螂 的文章

 

随机推荐