摘要:
- ( void ) imageSaved: ( UIImage *) image didFinishSavingWithError:( NSError *)error contextInfo: ( void *) contextInfo { NSLog(@"保存结束"); ... 阅读全文
摘要:
[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(deviceOrientationChange) name:UIDeviceOrientationDidChangeNotificationobject:nil]; 阅读全文
摘要:
~/Library/Containers/com.apple.ImageKit.RecentPictureService/Data/Library/Images/Recent Pictures/ 阅读全文
摘要:
Unity 3D 简单工程的创建。与Xcode 导出到iOS 平台请看这Unity3D 学习 创建简单的按钮、相应事件Unity C# 代码using UnityEngine;using System.Collections;using System.Runtime.InteropServices;public class testFeil : MonoBehaviour { [DllImport("__Internal")] private static extern void c_ctest(); // Use this for initializatio... 阅读全文
摘要:
选择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 阅读全文
摘要:
-(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... 阅读全文
摘要:
首先定位到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, 阅读全文
摘要:
//// 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... 阅读全文
摘要:
iOS运用keychain 结合[[[UIDevice currentDevice] identifierForVendor] UUIDString]取得设备唯一标识 NSString *identifierStr = [[[UIDevice currentDevice] identifierForVendor] UUIDString] NSString * const KEY_USERNAME_PASSWORD = @"com.snda.app.usernamepassword"; NSString * const KEY_PASSWORD = @"com.sn 阅读全文
摘要:
函数:isdigit用法:#include功能:判断字符c是否为数字说明:当c为数字0-9时,返回非零值,否则返回零。函数:islower用法:#include功能:判断字符c是否为小写英文字母说明:当c为小写英文字母(a-z)时,返回非零值,否则返回零。函数:isupper用法:#include功能:判断字符c是否为大写英文字母说明:当c为大写英文字母(A-Z)时,返回非零值,否则返回零。函数:isxdigit用法:#include功能:判断字符c是否为十六进制数字说明:当c为A-F,a-f或0-9之间的十六进制数字时,返回非零值,否则返回零。函数:isalnum用法:#include功能: 阅读全文