Sportica   Sportica
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 26 下一页
摘要: 原文地址:UIFont 设置字体作者:青竹居士 http://deep-fish.iteye.com/blog/1678874UIFont 设置字体1 label.font = [UIFont fontWithName:@"Arial-BoldItalicMT" size:24];字体名如下:Font Family: American TypewriterFont: AmericanTypewriterFont: AmericanTypewriter-BoldFont Family: AppleGothicFont: AppleGothicFont Family: Aria 阅读全文
posted @ 2013-09-24 16:00 qingjoin 阅读(10643) 评论(1) 推荐(1)
摘要: //比如rgb 色值为73、 148 、230 那么ios 里面要在后面加.0f 再除以255[bline setBackgroundColor:[UIColor colorWithRed:73.0f/255.0f green:148.0f/255.0f blue:230.0f/255.0f alpha:0.5]]; 阅读全文
posted @ 2013-09-24 15:16 qingjoin 阅读(13742) 评论(1) 推荐(0)
摘要: iOS 7后Mac 地址就不能用了。不过可以用advertisingIdentifier来取,再多个project 里测试是唯一的,但如果遇到系统升级或是重刷这个就不一定能唯一了。。这里还要加一个库。AdSupport.frameworkNSString *adId = [[[ASIdentifierManagersharedManager] advertisingIdentifier] UUIDString]; NSLog(@"divicedentifier:%@",[selfmacaddress]);//50C10807-E87A-476C-9AE4-6BA221838 阅读全文
posted @ 2013-09-24 10:54 qingjoin 阅读(1593) 评论(0) 推荐(0)
摘要: .配置Git首先在本地创建ssh key;$ ssh-keygen -t rsa -C "your_email@youremail.com"后面的your_email@youremail.com改为你的邮箱,之后会要求确认路径和输入密码,我们这使用默认的一路回车就行。成功的话会在~/下生成.ssh文... 阅读全文
posted @ 2013-08-29 15:07 qingjoin 阅读(2606) 评论(0) 推荐(0)
摘要: A 跳到B NSURL *urlT = [NSURL URLWithString:@"TestB://XXXXXXX"]; //注意“://”后面可以任意传参数。这些参数传过去后当跳到B时会在-(BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url 这个方法里实现。 if ([[UIApplication sharedApplication] canOpenURL:urlT]) { [[UIApplication sharedApplication] openU... 阅读全文
posted @ 2013-08-29 12:25 qingjoin 阅读(699) 评论(0) 推荐(0)
摘要: //修改main.m 文件。typedef int (*PYStdWriter)(void *, const char *, int);static PYStdWriter _oldStdWrite;int __pyStderrWrite(void *inFD, const char *buffer, int size){ if ( strncmp(buffer, "AssertMacros:", 13) == 0 ) { return 0; } return _oldStdWrite(inFD, buffer, size);}int main(int argc... 阅读全文
posted @ 2013-08-16 13:29 qingjoin 阅读(924) 评论(0) 推荐(0)
摘要: iOS 7有一个新功能 Sprite Kit 这个有点类似cocos2d 感觉用法都差不多。下面简单来介绍下Sprite KitAbout Sprite KitSprite Kit provides a graphics rendering and animation infrastructure that you can use to animate arbitrary textured images, orsprites. Sprite Kit uses a traditional rendering loop that allows processing on the contents 阅读全文
posted @ 2013-08-13 16:18 qingjoin 阅读(4259) 评论(0) 推荐(1)
摘要: 今天在做sprite Kit game时遇到一个问题。新建一个项目运行时发现就加了这几句代码无法运行。后来一查原来是storyboard uiview要改一下。改成SKviewIn your storyboard, did you set the 'custom class' of the VC's root view to SKView? SKView *spriteView = (SKView*)self.view; spriteView.showsFPS = YES; spriteView.showsDrawCount = YES; spriteView.sho. 阅读全文
posted @ 2013-08-13 14:20 qingjoin 阅读(3472) 评论(0) 推荐(0)
摘要: //mac address#include // Per msqr#include #include #include //mac address// Return the local MAC addy// Courtesy of FreeBSD hackers email list// Accidentally munged during previous update. Fixed thanks to erica sadun & mlamb.- (NSString *)macaddress{ int mib[6]; size_t ... 阅读全文
posted @ 2013-07-31 13:07 qingjoin 阅读(3662) 评论(0) 推荐(0)
摘要: 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 阅读(249) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 26 下一页
  Sportica