上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: 一.Undefined symbols for architecture x86_64:Xcode升级到5.1 新特性之一就是默认让所有App都通过64位编译器编译。原来在Xcode5.0.x的时候默认的Standard architectures只有(arm7,armv7s),到5.1之后默认就带... 阅读全文
posted @ 2015-10-10 17:09 上官元空 阅读(171) 评论(0) 推荐(0) 编辑
摘要: [format setDateFormat:@"yyyy倒霉年MM幸运月dd灾难日 hh郁闷小时mm破分ss烂秒SSS屁屁毫秒"];NSDateFormatter *formatter = [[NSDateFormatter alloc] init];[formatter setDateFormat... 阅读全文
posted @ 2015-10-10 17:08 上官元空 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 新建一个类继承自UIScrollView 并重写下面的方法-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [super touchesBegan:touches withEvent:event]; if ( !sel... 阅读全文
posted @ 2015-10-10 17:07 上官元空 阅读(571) 评论(0) 推荐(0) 编辑
摘要: AddOrEditViewController *addOrEdit = [[AddOrEditViewController alloc] init]; CATransition *transition = [CATransition animation]; transition.duration ... 阅读全文
posted @ 2015-10-10 17:07 上官元空 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 这个库是一个单例,它一旦生效,全项目任何界面都有效。让它生效的代码可以写在任意位置,我写在AppDelegate里。12345678910-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDi... 阅读全文
posted @ 2015-10-10 17:04 上官元空 阅读(1407) 评论(0) 推荐(0) 编辑
摘要: An error occurred and the operation could not be completed出现这个错误原因是 下面的的两个选项有勾选的 提交代码时下面的两个都不选 阅读全文
posted @ 2015-10-10 17:02 上官元空 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 导入准备工作1.建立一个Framework & Library->Cocoa Touch Static Library 取名A,并在A里新建一个类用来测试2.建立一个demo工程B3.把工程A整个文件夹复制到B工程文件夹里,位置随便选(只要你会添加头文件搜索路劲,如果不会,建议去另一篇教程学习htt... 阅读全文
posted @ 2015-10-10 16:59 上官元空 阅读(434) 评论(0) 推荐(0) 编辑
摘要: [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:3] animated:YES]; 阅读全文
posted @ 2015-10-10 15:28 上官元空 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 最近在开发一个app,需要调用银联的sdk控件,银联提供的demo可以正常运行,但是自己的程序却怎么都编译不通过,到底有哪些需要注意的呢??具体的有可能会出现哪些错误我就不列举了,我只是提下有哪些需要注意的地方,也就是说遇到了错误你就好好检查下这些地方是否都是配置正确了。1.将 xcode 工程中 ... 阅读全文
posted @ 2015-10-10 15:27 上官元空 阅读(482) 评论(0) 推荐(0) 编辑
摘要: (1)CGRectInsetCGRect CGRectInset (CGRect rect,CGFloat dx,CGFloat dy);该结构体的应用是以原rect为中心,再参考dx,dy,进行缩放或者放大。举例如下:CGRectr1=CGRectMake(100,100,50,50);CGRec... 阅读全文
posted @ 2015-10-10 15:26 上官元空 阅读(176) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页