自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (1)
  • 收藏
  • 关注

转载 cocos2d-x模拟摇杆

现在很多手机APP都有模拟操控摇杆的功能,今天项目中接触到一个委托事件,我顺便试试实现这个摇杆功能。代码如下[cpp] view plaincopy/*  *  Joystick.h  *  YaoGan  *  *  Created by Liu Yanghui on 11-10-27.  *  Copyright 20

2013-10-23 18:46:42 652

原创 iOS的Animation及键盘的回收

+(void)switchViewControllor:(int)index{   //获取当前应用程序的代理对象    AppDelegate *nowdelegate=[UIApplication sharedApplication].delegate;    [UIView begincs:nil context:NULL];//启动动画    [UIView setDu

2013-10-14 19:56:21 501

转载 CCAnimation创建动画 cocos2d-x

CCSize s=CCDirector::sharedDirector()->getWinSize();    CCTexture2D *texture=CCTextureCache::sharedTextureCache()->addImage("*****.png");   CCSpriteFrame *frame0 = CCSpriteFrame::createWithT

2013-10-14 19:31:15 578

原创 iOS之简单的小车移动

这是一个简单的小程序,有上,下,左,右。四个按钮控制一个小车的移动。ViewController.h文件@interface ViewController :UIViewController{   UIButton * bt1;   UIButton * bt2;   UIButton *bt3;   UIButton *bt4;   U

2013-10-12 10:39:53 775

原创 iOS入门之UIButton/ViewController/UIImage

UIButton 按钮UIButton * bt1=[UIButton buttonWithType:UIButtonTypeRoundedRect];[bt1 setTitle:@"ok" forState:UIControlStateNormal];[window addSubview:bt1];对象                委托对象

2013-10-11 20:59:37 577

原创 iOS之文件处理

----------------------获取沙盒信息-----------------        //获取应用程序根目录        NSString *path1 = NSHomeDirectory();                //获取docment的目录        NSArray *patharr = NSSearchPathForDirector

2013-10-09 20:50:56 464

原创 iOS控件属性总结(二)

UITabBarItem---------------------- //UITabBarItem 是导航视图下面的对多五个,的小方块 UITabBarItem*tabBar=[[UITabBarItem alloc]initWithTitle:@"机票查询" image:[UIImage imageNamed:@"near.png"]tag:4];    //

2013-10-09 19:04:42 617

原创 iOS控件属性总结

坐标相关---------------------------CGRect frame = CGRectMake(280, 12, 20, 20);CGSize size=CGSizeMake(320,420);CGPoint point=CGPointMake(30,60);CGRect rect=[[UIScreen mainScreen] applicationFrame

2013-10-09 14:22:07 616

objective-c的中文手册

这是一个objective-c的中文手册,可以帮助学习。

2013-09-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除