Sportica   Sportica
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 26 下一页
摘要: UIImageView *imageView1 = [[UIImageView alloc]initWithFrame:CGRectMake(0, 100, 320, 20)]; [self.view addSubview:imageView1]; UIGraphicsBeginImageContext(imageView1.frame.size); //开始画线 [imageView1.image drawInRect:CGRectMake(0, 0, imageView1.frame.size.width, imageView1.frame.size.... 阅读全文
posted @ 2013-09-24 18:29 qingjoin 阅读(16496) 评论(2) 推荐(0) 编辑
摘要: 原文地址: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 阅读(10557) 评论(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 阅读(13727) 评论(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 阅读(1585) 评论(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 阅读(2579) 评论(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 阅读(693) 评论(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 阅读(915) 评论(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 阅读(4235) 评论(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 阅读(3456) 评论(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 阅读(3641) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 26 下一页
  Sportica