摘要: 一个新建的.xib文件(Xcode's Interface Builder),有一个默认的View,也就是self.view,是主视图其他新建的View可以在viewDidLoad()函数中使用[self.view addSubviews: self.otherView];添加到主视图中去 阅读全文
posted @ 2014-06-09 17:23 酷熊 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 找到工程中的Supporting Files/工程名-info.plist添加设置1、status bar is initially hidden=YES2、View Controller-based status bar application=NO 阅读全文
posted @ 2014-06-09 17:19 酷熊 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 在C++代码中想调用显示一个IOS界面,使用NSNotificationCenter1、在界面中注册消息[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(mytestFunc:)name:@" mytest"... 阅读全文
posted @ 2014-06-09 17:16 酷熊 阅读(835) 评论(0) 推荐(0) 编辑
摘要: NSArray* ary=[[NSFileManager defaultManager] contentsOfDirectoryAtPath:[[NSBundle mainBundle] pathForResource:@"folderName" ofType:nil] error:nil]; 阅读全文
posted @ 2014-06-09 17:09 酷熊 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: 平时使用GUIEventHandler不太注意handle()函数的返回值,觉得返回true或者false都无所谓,其实不然。我遇到的问题是程序中一个节点添加了GUIEventHandler对象pickIconHandler注册PUSH动作,handle()的返回值写成了return true;相机... 阅读全文
posted @ 2014-06-09 17:06 酷熊 阅读(766) 评论(0) 推荐(0) 编辑
摘要: windows键+X,再按A键进入管理员模式的命令提示符输入命令:net user administrator /active:yes然后注销,即可使用管理员账户登录 阅读全文
posted @ 2014-06-09 16:58 酷熊 阅读(231) 评论(0) 推荐(0) 编辑
摘要: mapEmployees;Employees["MikeC."]=12306; Employees.insert(make_pair("PeterQ.",5328)); 阅读全文
posted @ 2014-06-09 16:54 酷熊 阅读(673) 评论(0) 推荐(0) 编辑