博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

04 2012 档案

摘要:Link address:http://www.oschina.net/question/54100_36103在Xcode源代码文件中,含有版权信息copyright,其中有公司信息,缺省下公司信息是 __MyCompanyName__,这个值是可以通过Xcode进行修改的。选择左侧的导航栏面板中的工程名称,打开工具面板Utilities pane(在界面的工具栏上右上角的View工具按钮),在下面的界面中,找到“Project Document”分区,里面有“Organization”输入框,在里面设置你所需要的公司名称即可。到此刻虽然修改了,但是Xcode 4似乎是不能保存这个修改的。解 阅读全文

posted @ 2012-04-28 21:52 星尘的天空 阅读(227) 评论(0) 推荐(0)

摘要:Content:从本地文本文件中读取字符串,self.multiPageView.text = [NSString stringFromFileNamed:@"lorem_ipsum.txt"];这个是读取文本的txt文件中的字符串THE END ! 阅读全文

posted @ 2012-04-28 20:01 星尘的天空 阅读(164) 评论(0) 推荐(0)

摘要:设置UILable 的阴影效果参考代码: self.label.shadowColor = [UIColorredColor]; self.label.shadowOffset = CGSizeMake(2, 2);THE END ! 阅读全文

posted @ 2012-04-28 19:51 星尘的天空 阅读(144) 评论(0) 推荐(0)

摘要:Provider Communication with Apple Push Notification ServiceThis chapter describes the interfaces(接口) that providers use for communication with Apple Push Notification service (APNs) and discusses some of the functions that providers are expected to fulfill(满足、实行).General Provider RequirementsAs a pr 阅读全文

posted @ 2012-04-28 19:38 星尘的天空 阅读(313) 评论(0) 推荐(0)

摘要:Provider Communication with Apple Push Notification ServiceThis chapter describes the interfaces(接口) that providers use for communication with Apple Push Notification service (APNs) and discusses some of the functions that providers are expected to fulfill(满足、实行).General Provider RequirementsAs a pr 阅读全文

posted @ 2012-04-27 09:41 星尘的天空 阅读(345) 评论(0) 推荐(0)

摘要:参考代码:UIImage *oriImage = [UIImage imageNamed:@"xxx.png"];NSString *imagePath = @"/Documents/01.png";NSData* imageData = UIImagePNGRepresentation(oriImage);[imageData writeToFile:imagePath atomically:YES];保存一个Image到一个指定的路径 阅读全文

posted @ 2012-04-27 07:44 星尘的天空 阅读(194) 评论(0) 推荐(0)

摘要:Provisioning and DevelopmentSandbox and Production EnvironmentsTo develop and deploy(部署) the provider side of a client/server application, you must get SSL certificates from the appropriate Dev Center. Each certificate is limited to a single application, identified by its bundle ID. Each certificate 阅读全文

posted @ 2012-04-25 08:19 星尘的天空 阅读(470) 评论(0) 推荐(0)

摘要:Apple Push Notification ServiceApple Push Notification service (APNs for short) is the centerpiece(核心) of the push notifications feature. It is a robust(健壮的) and highly efficient service for propagating(传播) information to devices such as iPhone, iPad, and iPod touch devices. Each device establishes 阅读全文

posted @ 2012-04-19 10:26 星尘的天空 阅读(772) 评论(0) 推荐(0)

摘要:Link address:http://www.soft6.com/v9/2012/fzzz_0116/168422.html对于2D平面上的点[x,y],2x2的变换矩阵(右乘)表示的是线性变换,不包含平移。 (中国软件网讯) GL坐标系 Cocos2D以OpenglES为图形库,所以它使用OpenglES坐标系。GL坐标系原点在屏幕左下角,x轴向右,y轴向上。 屏幕坐标系 苹果的Quarze2D使用的是不同的坐标系统,原点在屏幕左上角,x轴向右,y轴向下。ios的屏幕触摸事件CCTouch传入的位置信息使用的是该坐标系。因此在cocos2d中对触摸事件做出响应前需要首先把触摸点转化... 阅读全文

posted @ 2012-04-18 22:55 星尘的天空 阅读(243) 评论(0) 推荐(0)

摘要: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 星尘的天空 阅读(246) 评论(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 星尘的天空 阅读(521) 评论(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 星尘的天空 阅读(322) 评论(0) 推荐(0)

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

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

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

posted @ 2012-04-13 20:14 星尘的天空 阅读(253) 评论(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 星尘的天空 阅读(261) 评论(0) 推荐(0)

摘要: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 星尘的天空 阅读(539) 评论(0) 推荐(0)

摘要: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 星尘的天空 阅读(683) 评论(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 星尘的天空 阅读(337) 评论(0) 推荐(0)