摘要:
在frameworks中添加QuartzCore.framework在接口程序中加上头文件 #import <QuartzCore/QuartzCore.h>用 CATransition创建transition CATransition *transition = [CATransition animation]; transition.duration = 1.0f; /* 间隔时间*/ transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInE 阅读全文
摘要:
[UIApplicationsharedApplication].idleTimerDisabled=YES;//not let iphone go to sleep 阅读全文
摘要:
贴代码NSLog(@"%@", NSStringFromClass([self class])); 阅读全文
摘要:
贴代码NSUserDefaults* defs = [NSUserDefaults standardUserDefaults]; NSArray* languages = [defs objectForKey:@"AppleLanguages"]; NSString* preferredLang = [languages objectAtIndex:0]; 阅读全文