09 2012 档案
摘要:NSString *className = NSStringFromClass([UIView class]);const char *cClassName = [className UTF8String];id theClass = objc_getClass(cClassName);unsigned int outCount;Method *m =class_copyMethodList(theClass,&outCount);NSLog(@"%d",outCount);for (int i = 0; i<outCount; i++) {SEL a = m
阅读全文
摘要:首先导入CoreText.framework,并在需要使用的文件中导入:#import<CoreText/CoreText.h>创建一个NSMutableAttributedString:NSMutableAttributedString*attriString=[[[NSMutableAttributedStringalloc]initWithString:@"thisistest!"]autorelease];非常常规的创建方式,接下来我们给它配置属性://把this的字体颜色变为红色[attriStringaddAttribute:(NSString*)k
阅读全文
摘要:[1] 、加入头文件#include <sys/sysctl.h>[2]、添加类,实现- (NSString *) platform{ size_t size; sysctlbyname("hw.machine", NULL, &size, NULL, 0); char *machine = malloc(size); sysctlbyname("hw.machine", machine, &size, NULL, 0); NSString*platform = [NSStringstringWithCString:machi
阅读全文
摘要:CABasicAnimation animationWithKeyPath TypesWhen using the ‘CABasicAnimation’ from the QuartzCore Framework in Objective-C, you have to specify an animationWithKeyPath.This is a long string and is not easily listed in the CABasicAnimation, CAPropertyAnimation, or the CAAnimation class.I ended up find
阅读全文
摘要:截取本区域(self.view):UIGraphicsBeginImageContext(CGSizeMake(self.view.frame.size.width, self.view.frame.size.height));[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();UIGraphicsEndImageContext();UIImageWriteToSavedPhotosAlbu
阅读全文
摘要:一. 如何获取SQLite最新版本官方站点:http://www.sqlite.org/从http://www.sqlite.org/网站的Download页面获取即如下页面下载http://www.sqlite.org/download.htmlhttp://blog.csdn.net/littletigerat二.Windows下的SQLite的源代码是哪个软件压缩包?sqlite-amalgamation-3_6_22.zip是SQLite的windows下源码文件三.Window下的SQLite命令行工具sqlite-3_6_22.zip四.Window下的SQLite开发库,即动态链
阅读全文