06 2018 档案

摘要:extern的用法 我在ViewController.h中声明了一个全局变量TestA 在ViewController.m文件中赋值 然后如果我想在另外的文件中使用testA,例如在testViewController中。 只需要在testViewController中重新声明一下就可以了 这里会有 阅读全文
posted @ 2018-06-26 16:08 小师傅啊小师傅 阅读(222) 评论(0) 推荐(0) 编辑
摘要:其实之前在stackoverflow就看过一篇讲的比较详细的, https://stackoverflow.com/questions/14877415/difference-between-typeof-typeof-and-typeof-objective-c 个人理解两者只是编译方式不同,在g 阅读全文
posted @ 2018-06-22 10:55 小师傅啊小师傅 阅读(1089) 评论(0) 推荐(0) 编辑
摘要:UIViewController *vc =self.presentingViewController; while (![vc isKindOfClass:[[UIApplication sharedApplication].keyWindow.rootViewController class]] 阅读全文
posted @ 2018-06-13 15:53 小师傅啊小师傅 阅读(112) 评论(0) 推荐(0) 编辑
摘要:碰到过两次这种错误 感觉Xcode在乱报error 可能是资源的拓展名导致的问题 阅读全文
posted @ 2018-06-12 15:32 小师傅啊小师傅 阅读(124) 评论(0) 推荐(0) 编辑
摘要:要手动添加WebKit.framework 阅读全文
posted @ 2018-06-11 16:07 小师傅啊小师傅 阅读(156) 评论(0) 推荐(0) 编辑
摘要:在MRC模式下使用SDWebImage (1)在Target->Build Phases->Compile Sources中,给所有的SDWebImage添加-fobjc-arc (2)添加两个framework:ImageIO.framework MapKit.framework 阅读全文
posted @ 2018-06-11 15:59 小师傅啊小师傅 阅读(140) 评论(0) 推荐(0) 编辑
摘要:_tableView.estimatedRowHeight = 0; _tableView.estimatedSectionHeaderHeight = 0; _tableView.estimatedSectionFooterHeight = 0; 阅读全文
posted @ 2018-06-06 11:41 小师傅啊小师傅 阅读(945) 评论(0) 推荐(0) 编辑
摘要:碰到了两次 NSLog请求结果只有一部分 如果NSLog语句中没有汉语就可以全部输出了,不清楚原因。 阅读全文
posted @ 2018-06-04 16:13 小师傅啊小师傅 阅读(128) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示