12 2015 档案
摘要:http://www.it165.net/pro/html/201503/36842.html每当我们编译之后,实际上系统就给我编译好了一个可以运行的.app文件,在某个路径下如果我们建立的是静态的工程,则系统帮我们产生了一个.a文件(编译之后才有)但是当我们 Show in finder时,却无法...
阅读全文
摘要:http://www.cocoachina.com/ios/20150127/11022.html
阅读全文
摘要:CoreGraphics.hCGAffineTransform rotation = CGAffineTransformMakeRotation(M_PI_2);[xxx setTransform:rotation];呵呵就这么简单的两行代码就可以实现了!顺便记录一些常量,以后用的着!#define...
阅读全文
摘要:首先创建界面,在viewDidLoad创建view以及button相关代码如下-(void)viewDidLoad{ [super viewDidLoad]; viewDemo = [[UIView alloc] initWithFrame:CGRectMake(0, 50, 320, 50)]...
阅读全文
摘要:// Predefined character attributes for text. If the key is not in the dictionary, then use the default values as described below.UIKIT_EXTERN NSString...
阅读全文
摘要:dispatch_queue_t defaultQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_async(defaultQueue, ^{ [[NSNotific...
阅读全文
摘要:ios项目中引用其他开源项目,今天再次复习了,记个备注。1. 将开源项目的.xcodeproj拖入项目frameworks2. Build Phases下 Links Binary With Libraries 引入.a文件。Target Dependencies里引入开源项目文件3. Build ...
阅读全文
摘要:IOS问题解决。现在进行老项目的编译,发现不能编译。经过各种盲目查询,找个几个方案。1.builde setting修改编译方式。2.Builde Phases(修改)。 2.1.库。 2.1.1 检查库是否引用。 2.2.2 检查库的版本。 2.2 Complies 编译文件。 ...
阅读全文
摘要:NSError *error;if (![context save:&error]) { // Handle the error.}
阅读全文