自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

转载 How to use/install gcc on Mac OS X 10.8 / Xcode 4.4

http://stackoverflow.com/questions/9353444/how-to-use-install-gcc-on-mac-os-x-10-8-xcode-4-4

2013-05-17 13:37:12 476

原创 [iOS代码] 根据文字生成图片UIImage

CGColorSpaceRef colorSpace =CGColorSpaceCreateDeviceRGB();   CGContextRef context = CGBitmapContextCreate(NULL, dsize.width, dsize.height,8, 4*dsize.width, colorSpace, kCGImageAlphaPremu

2013-05-09 19:57:57 1238

原创 [iOS代码] 页面中休眠功能的开启和关闭

- (void)viewWillAppear:(BOOL)animated{    [superviewWillAppear:animated];    //禁止休眠    [[UIApplicationsharedApplication] setIdleTimerDisabled:YES];}- (void)viewWillDisappear:

2013-05-09 19:53:21 603

原创 [iOS常见问题] 本地文件路径[NSURL URLWithString:] 获得的值为空nil

NSString* cFilePath = [[NSBundlemainBundle] pathForResource:@"c"ofType:@"xml"];NSURL* cFileUrl = [NSURL URLWithString:cFilePath];这样获得的 cFileUrl 一直为空, 正确用法是NSURL* cFileUrl = [NS

2013-05-07 14:40:33 1173

原创 [iOS代码] 日期格式 时间戳

获取系统的当前时间:NSDateFormatter* dateFormatter = [[[NSDateFormatter alloc] init] autorelease];[dateFormatter setLocale:[NSLocale currentLocale]];[dateFormatter setTimeZone:[NSTimeZone systemTime

2013-05-03 16:39:10 395

原创 [iOS代码] 获取键盘keyboard所占区域大小,调整界面布局

键盘大小变化时,系统会发出 UIKeyboardWillShowNotification 通知,我们只要监听这个通知,并在响应函数里处理界面布局就行。 [[NSNotificationCenter defaultCenter] addObserver:self selector:@sel

2013-05-01 23:33:05 742

原创 [iOS代码] 视图view如何截图 生成UIImage图片

#import UIImage* layerImage = nil; CGSize layerSize = self.contentScrollView.frame.size; UIGraphicsBeginImageContextWithOptions(layerSize, NO, 2.0); [self.contentScrollView.la

2013-05-01 19:06:31 551

原创 [iOS代码] iOS怎么平铺图片

UIImageView不支持图片平铺,通过设置颜色纹理,会有平铺效果。 UIImage* bgImage = [UIImage imageNamed:@"bg.png"]; [self.view setBackgroundColor:[UIColor colorWithPatternImage:bgImage]];

2013-05-01 10:59:23 621

原创 [iOS代码] 打开App Store评论页面

NSString* appid = @"403858572"; NSString* url = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", appid];

2013-05-01 09:13:54 572

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除