Sportica   Sportica
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页
摘要: UIImage *snapshot; CGImageRef cgScreen = UIGetScreenImage(); if (cgScreen) { snapshot = [UIImage imageWithCGImage:cgScreen]; CGImageRelease(cgScreen); } CGRect rect = CGRectMake(0,125, 640, 750);//创建要剪切的矩形框 这里你可以自己修改 UIImage *res = [UIImage imageWithCGImage:CGImageC... 阅读全文
posted @ 2013-07-31 13:05 qingjoin 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 1.定义一个字符串a, 截取a 的某一个部分,复制给b, b必须是int型NSString *a = @"1.2.30"; int b= [[a substringWithRange:NSMakeRange(4,2)] intValue]; NSLog(@"a:%@ n",a ); NSLog(@"b:%d",b ); 解析如下:substringWithRange: 专门截取字符串的一块肉NSMakeRange(4,2) 从第4个字符开始截取,长度为2个字符,(字符串都是从第0个字符开始数的哦~!)b = [a intValue]; 阅读全文
posted @ 2013-07-30 10:55 qingjoin 阅读(1495) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/vipwangl/article/details/8846415最近在学习Parse,但是Parse的中文教程比较少,看到这篇英文教程,把它翻译一下与大家共享,本人的英语水平不是很高,有的地方可能译得不好,望大神轻拍。。原文地址http://www.raywenderlich.com/19341/how-to-easily-create-a-web-backend-for-your-apps-with-parse首先—创建你的后台服务 在开始编写你的app前,你首先要做的是创建你的Parse后台,每个开发人员和每个app都需要一个不同的标识, 阅读全文
posted @ 2013-07-17 18:20 qingjoin 阅读(6817) 评论(1) 推荐(2) 编辑
摘要: First of all:新建一个空白project. File->New->Project然后新建两个文件 File->New->File 如图然后选择targets add Target注意:iOS工程的选项里面没有Bundel,所以选择Mac里面的删除Build Phases里面的link库如图(删除Cocoa framework)接下来修改Build Settinga.Base SDK选择Latest IOS(IOS 6.1)b.Build Active Architecture Only选择NOc.Drad Code Stripping设置为NOd.Mach- 阅读全文
posted @ 2013-07-17 14:04 qingjoin 阅读(2064) 评论(6) 推荐(1) 编辑
摘要: #include #include #include #include - (NSArray *)getDataCounters{ BOOL success; struct ifaddrs *addrs; const struct ifaddrs *cursor; const struct if_data *networkStatisc; int WiFiSent = 0; int WiFiReceived = 0; int WWANSent = 0; int WWANReceived = 0; NSString *na... 阅读全文
posted @ 2013-07-02 18:36 qingjoin 阅读(1618) 评论(0) 推荐(0) 编辑
摘要: The executable was signed with invalid entitlements 这个错误有可能是因为 Bundle Identifier 错误这里的XXX一定要跟你的证书上保持一致!(如果你是在真机上调试的话!) 阅读全文
posted @ 2013-07-02 16:25 qingjoin 阅读(6845) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/qingjoin/p/3160945.htmliOS7 的这个功能确实不错。我刚试了下,用官方提供的API ,简单的几句代码就能实现文本转语音!Xcode 5.0工程建好后首先把AVFoundation.framework 加入到工程 AVSpeechSynthesizer *av = [[AVSpeechSynthesizer alloc]init]; AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc]initWithString:@"Hello qingjoin" 阅读全文
posted @ 2013-06-28 15:22 qingjoin 阅读(7886) 评论(4) 推荐(2) 编辑
摘要: The document "ViewController.xib" could not be opened. Could not read archive.Please use a newer version of Xcode. Consider changing the document's Development Target to preserve compatibility.Xcode 升到5.0后。再回去用4.6打开的时候 .xib文件就会提示这个错误解决办法:用5.0打开project. 选择.xib文件。然后在右边的列表里找到Interface Bui 阅读全文
posted @ 2013-06-27 14:28 qingjoin 阅读(3402) 评论(2) 推荐(1) 编辑
摘要: UIPanGestureRecognizer *recognizer = [[[UIPanGestureRecognizer alloc]initWithTarget:self action:@selector(paningGestureReceive:)]autorelease]; [recognizer delaysTouchesBegan]; [self.view addGestureRecognizer:recogn... 阅读全文
posted @ 2013-06-24 17:46 qingjoin 阅读(736) 评论(0) 推荐(0) 编辑
摘要: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Override point for customization after application launch. self.viewController = [[[V... 阅读全文
posted @ 2013-06-24 17:26 qingjoin 阅读(225) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页
  Sportica