Sportica   Sportica

03 2014 档案

摘要:选择file -->new project然后保存到相应的地方下面是这个刚创建的工程效果图。然后创建一个C# Script ||定位到最左下角找到 assets --> create --> C# Script 然后起一个名字。创建好了如图所示然后选中左边的 Main Camera 把刚创建的Script 与Main Camera 关联把刚创建的Script Add 进来。然后选中刚创建的Script open it 打开。打开后如图所示添加如下代码using UnityEngine;using System.Collections;public class NewBehav 阅读全文
posted @ 2014-03-28 13:52 qingjoin 阅读(40663) 评论(0) 推荐(0) 编辑
摘要:-(void)testMove{ moveBtn = [[UIButton alloc ]init]; moveBtn.frame = CGRectMake(0, 30, 60, 60); moveBtn.backgroundColor = [UIColorredColor]; //[moveBtn addTarget:self action:@selector(moveBtn) forControlEvents:UIControlEventTouchDown]; //[moveBtn addTarget:self action:@selector(moveBtnEnd) forCo... 阅读全文
posted @ 2014-03-26 18:38 qingjoin 阅读(2987) 评论(0) 推荐(0) 编辑
摘要:首先定位到libs-->cocos2dx-->platform-->iOS-->CCImage.mm 找到这个文件。打开CCImage.mm文件,定位到如下函数:[cpp] static bool _initWithString(const char * pText, cocos2d::CCImage::ETextAlign eAlign, const char * pFontName, int nSize, tImageInfo* pInfo) 然后,找到:[cpp]CGContextRef context = CGBitmapContextCreate(data, 阅读全文
posted @ 2014-03-24 14:06 qingjoin 阅读(1957) 评论(0) 推荐(0) 编辑
摘要://// ViewController.m// YunPhoto//// Created by qingyun on 3/4/14.// Copyright (c) 2014 qingyun. All rights reserved.//#import "ViewController.h"@interface ViewController ()@end@implementation ViewController@synthesize sheet;- (void)viewDidLoad{ [super viewDidLoad]; UIButton *selectBtn... 阅读全文
posted @ 2014-03-04 18:18 qingjoin 阅读(1073) 评论(0) 推荐(0) 编辑

  Sportica
点击右上角即可分享
微信分享提示