2014年8月5日
摘要: UITabBarController是IOS中很常用的一个viewController,例如系统的闹钟程序,ipod程序等。UITabBarController通常作为整个程序的rootViewController,而且不能添加到别的container viewController中。 首先我们看... 阅读全文
posted @ 2014-08-05 21:18 我靠是时候那个了 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1、删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误:Could not find a storyboard named 'Main' in bundle NSBundle2、删除main.storyboard后,需要在AppDelegate.m中初始化... 阅读全文
posted @ 2014-08-05 21:14 我靠是时候那个了 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 检查更新这个功能,在iOS开发中也是比较常见的,下面总结一下我自己的实现:[objc] view plaincopyprint?#pragmamark-检查更新 -(void)checkUpdateWithAPPID:(NSString*)APPID{//获取当前应用版本号 NSDictionary... 阅读全文
posted @ 2014-08-05 15:08 我靠是时候那个了 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 1.找到SDImageCache类2.添加如下方法:[objc] view plaincopyprint?-(float)checkTmpSize{floattotalSize=0;NSDirectoryEnumerator*fileEnumerator=[[NSFileManagerdefault... 阅读全文
posted @ 2014-08-05 15:07 我靠是时候那个了 阅读(843) 评论(0) 推荐(0) 编辑
  2014年7月31日
摘要: linker command failed with exit code 1 (use -v to see invocation)错误具体信息如下:Undefined symbols for architecture i386: "_OBJC_CLASS_$_VRGCalenda... 阅读全文
posted @ 2014-07-31 20:07 我靠是时候那个了 阅读(124) 评论(0) 推荐(0) 编辑
  2014年6月18日
摘要: nspath* path=[[NSBundle mainBundle] pathForResource:@"SquareModelArray" ofType:@"json"]; 阅读全文
posted @ 2014-06-18 12:36 我靠是时候那个了 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 用NSFileManager类中方法:NSString *path=@"文件夹路径";NSFileManager * fm = [NSFileManager DefaultManager];NSArray *arr = [fmdirectoryContentsAtPath:path];枚举这个数组就... 阅读全文
posted @ 2014-06-18 12:34 我靠是时候那个了 阅读(800) 评论(0) 推荐(0) 编辑
摘要: 尼玛,真逗!6.18号开始继续努力学习! 阅读全文
posted @ 2014-06-18 12:31 我靠是时候那个了 阅读(79) 评论(0) 推荐(0) 编辑
  2014年6月15日
摘要: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/UI... 阅读全文
posted @ 2014-06-15 09:39 我靠是时候那个了 阅读(148) 评论(0) 推荐(0) 编辑
  2013年12月26日
摘要: 关于 initWithNibName和 loadNibNamed的区别和联系。之所以要把这两者来一起讲,我觉的我也有点困惑,到底用那种?其实真正搞清楚了他们之间的差别,就不会这么迷惘了。因为这两个方法,根本就不是一路货色。既然,是要说明这2个方法,那就着重将区别吧。但是第一步,还是要罗嗦一下,他们的联系:可以使用此方法加载用户界面(xib文件)到我们的代码中,这样,可以通过操作这个加载进来的(xib)对象,来操作xib文件内容。下面进入主题,谈区别:1.ShowViewController的initWithNibName方法ShowViewController * showMessage = 阅读全文
posted @ 2013-12-26 14:13 我靠是时候那个了 阅读(211) 评论(0) 推荐(0) 编辑