摘要: 1 前言 模板方法模式是面向对象软件设计中一种非常简单的设计模式。其基本思想是在抽象类的一个方法定义“标准”算法。在这个方法中调用的基本操作由子类重载予以实现。这个方法成为“模板”。因为方法定义的算法缺少一些特有的操作。 2 详述 2.1 简述 定义一个操作中算法的骨架,而将一些步骤延迟到子类中。模 阅读全文
posted @ 2016-02-01 18:21 北狐 阅读(419) 评论(0) 推荐(0) 编辑
摘要: iOS中plist的创建,数据写入与读取功能创建一个test.plist文件-(void)triggerStorage{ NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,Y 阅读全文
posted @ 2016-01-27 15:51 北狐 阅读(222) 评论(0) 推荐(0) 编辑
摘要: //源Controller中跳转方法实现 MKDialogController *controller = [[MKDialogController alloc] init]; controller.modalTransitionStyle = UIModalTransitionStyleCross 阅读全文
posted @ 2016-01-25 18:32 北狐 阅读(574) 评论(0) 推荐(0) 编辑
摘要: PropertiesalwaysBounceHorizontal //一个布尔值,决定是否弹跳总是出现水平滚动时达到结束内容的看法。默认值是NO 。@property(nonatomic) BOOL alwaysBounceHorizontal //如果这个属性被设置为YES而且bounces的值是... 阅读全文
posted @ 2016-01-25 03:39 北狐 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 0. enablesReturnKeyAutomatically默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的。1.borderStyle设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderSt... 阅读全文
posted @ 2016-01-17 13:00 北狐 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 列出每个文件的行数 列出代码行数总和 阅读全文
posted @ 2016-03-13 17:18 北狐 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 可能是由于粘贴网页上的代码的时候两行之间的回车引起的,两行之间重新输入回车就行...。。。删掉重新写一遍就ok了 阅读全文
posted @ 2016-03-10 17:44 北狐 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 在Archive项目时,出现了“Your build settings specify a provisioning profile with the UUID “”, however, no such provisioning profile was found”的出错。一直提示指定UUID的pr 阅读全文
posted @ 2016-03-08 03:36 北狐 阅读(282) 评论(0) 推荐(0) 编辑
摘要: CocoaPods是什么? 当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。可能某个类库又用到其他类库,所以要使用它,必须得另外下载其他类库,周而复始,可见手动一个个去下载所需类库十分麻烦。另外一种常见情况是,你项目中用到的类库有更新,你必须得 阅读全文
posted @ 2016-02-04 21:39 北狐 阅读(222) 评论(0) 推荐(0) 编辑
摘要: self.locationTimer =[NSTimer scheduledTimerWithTimeInterval: 0.01 target: self selector:@selector(transformAction) userInfo: nil repeats: YES];-(void) 阅读全文
posted @ 2016-01-31 02:49 北狐 阅读(833) 评论(0) 推荐(0) 编辑
摘要: 调用一次计时器方法: //不重复,只调用一次。timer运行一次就会自动停止运行 self.locationTimer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector: @selector(LocationTimer) 阅读全文
posted @ 2016-01-31 01:31 北狐 阅读(161) 评论(0) 推荐(0) 编辑
摘要: /设置按钮上的自体的大小//[btn setFont: [UIFont systemFontSize: 14.0]]; //这种可以用来设置字体的大小,但是可能会在将来的SDK版本中去除改方法//应该使用btn.titleLabel.font = [UIFont systemFontOfSize: ... 阅读全文
posted @ 2016-01-26 00:17 北狐 阅读(1036) 评论(0) 推荐(0) 编辑