博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 68 下一页

2012年4月18日

摘要: Link Address:http://www.cnblogs.com/cppguru/archive/2011/05/10/2041835.html 无论是搞2d还是3d开发,最需要搞清楚的就是坐标系,这部分混乱的话就没啥奔头了。所以玩cocos2d,一上来就先把各种与坐标有关的东西搞清楚。基本的两个坐标系:屏幕坐标系和GL坐标系。屏幕坐标系x轴朝右,y轴朝下。默认原点在左上角。GL坐标系x轴朝右,y轴朝上。默认原点在左下角。 在调用任何需要设置位置的函数,或从函数获取位置信息前,必须要明确这个函数使用哪个坐标系。比如调用CCNode类的setPosition函数,它使用的就是GL坐标... 阅读全文

posted @ 2012-04-18 22:51 星尘的天空 阅读(232) 评论(0) 推荐(0) 编辑

摘要: Link:http://www.buildapp.net/iphone/show.asp?id=56615// 如果获取当前的语言版本 NSUserDefaults* defs = [NSUserDefaults standardUserDefaults]; NSArray* languages = [defs objectForKey:@"AppleLanguages"]; NSString* preferredLang = [languages objectAtIndex:0]; BOOL mCurLanguages = FALSE; if( [pref... 阅读全文

posted @ 2012-04-18 11:21 星尘的天空 阅读(512) 评论(0) 推荐(0) 编辑

摘要: Link:http://www.cnblogs.com/AlexLiu/archive/2010/05/07/1729719.html本文简单介绍下,如何不同的应用系统,对应于同一个应用程序来说,显示不同的名字。例如我的这个游戏,中文是水果连连看,那么中文系统下载来显示这个名字,修改了系统之后,显示可能显示的是FruitPuzzle,如果是日本语的话,显示‘フールツパゼル’。1. 将Info.plist本地化在Info.plist上右键点选Get Info,在General标签下,点击Make File Localizable按钮。里面会有一个默认的英文版本,点击Add Localizatio 阅读全文

posted @ 2012-04-18 11:01 星尘的天空 阅读(283) 评论(0) 推荐(0) 编辑

2012年4月14日

摘要: 显示地图时,加入了一个 大头针, 现在必须单击大头针才能显示 标题。怎么能够载完地图后 自动显示这个 大头针 的标题信息。[m_mapView selectAnnotation:aannotation animated:YES];THE END ; 阅读全文

posted @ 2012-04-14 00:20 星尘的天空 阅读(369) 评论(0) 推荐(0) 编辑

2012年4月13日

摘要: 在学习GM的过程中,最处发现,在模拟器中调试的阶段,调用的地图显示的内容是英文的,即使我查询的区域在中国地区,解决方法:将模拟器的显示语言设置 中文简体 即可THE END ! 阅读全文

posted @ 2012-04-13 20:14 星尘的天空 阅读(227) 评论(0) 推荐(0) 编辑

摘要: URL :http://helloios.diandian.com/post/2011-10-31/6387190iphone调用系统电话、浏览器、地图、邮件等openURL的使用方法:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:appString]];其中系统的appString有:1.Maphttp://maps.google.com/maps?q=Shanghai2.Email mailto://myname@google.com3.Tel tel://100864.Msg sms://10086open 阅读全文

posted @ 2012-04-13 08:46 星尘的天空 阅读(245) 评论(0) 推荐(0) 编辑

2012年4月7日

摘要: Scheduling, Registering, and Handling NotificationsThis chapter describes the tasks that a iPhone, iPad, or iPod touch application should (or might) do to schedule local notifications, register remote notifications, and handle both local and remote notifications. Because the client-side API for push 阅读全文

posted @ 2012-04-07 11:11 星尘的天空 阅读(521) 评论(0) 推荐(0) 编辑

2012年4月6日

摘要: Local and Push Notifications in Depth(深度)The essential(本质) purpose of both local and push notifications is to enable an application to inform its users that it has something for them—for example, a message or an upcoming(即将推出的) appointment—when the application isn’t running in the foreground. The es 阅读全文

posted @ 2012-04-06 10:50 星尘的天空 阅读(662) 评论(3) 推荐(0) 编辑

摘要: About Local Notifications and Push NotificationsLocal notifications and push notifications are ways for an application that isn’t running in the foreground(前景) to let its users know it has information for them. The information could be a message, an impending(即将到来的) calendar(日历)event, or new data on 阅读全文

posted @ 2012-04-06 09:48 星尘的天空 阅读(320) 评论(0) 推荐(0) 编辑

2012年3月24日

摘要: Auto-Renewable SubscriptionsNote:Subscriptions(订阅) are available only on iOS.In-App Purchase provides a standardized(标准话)way to implement auto-renewable subscriptions. Auto-renewable subscriptions have a few notable(显著) characteristics(特点):When you configure an auto-renewable subscription in iTunes 阅读全文

posted @ 2012-03-24 01:01 星尘的天空 阅读(1213) 评论(0) 推荐(0) 编辑

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 68 下一页