2016年4月1日
摘要: 在当前活跃的window 添加一个view [[[[[UIApplication sharedApplication] keyWindow] rootViewController] view] addSubview:myview]; 阅读全文
posted @ 2016-04-01 16:43 许广 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1、presentViewController - (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^ __nullable) 阅读全文
posted @ 2016-04-01 16:38 许广 阅读(479) 评论(0) 推荐(0) 编辑
摘要: ios 开发过程中在不通过import 调用其他类的方法 //获取类名 Class controller = NSClassFromString(@"controller"); //不允许为空 if (controller) { //是否实现了该方法 if ([[controller alloc] 阅读全文
posted @ 2016-04-01 16:31 许广 阅读(429) 评论(0) 推荐(0) 编辑
  2016年3月29日
摘要: mac 用于开发使用时间长硬盘会越来越小,速度越来越慢的, 亦是花了几分钟研究怎么清理系统的缓存, 方法: 1,到 https://www.omnigroup.com/more/ 安装 OmniDiskSweeper ; 2.安装该应用程序,并选择双击你的硬盘 3.从最大的文件开始查找,(有使用xc 阅读全文
posted @ 2016-03-29 09:30 许广 阅读(1679) 评论(0) 推荐(0) 编辑
  2016年3月27日
摘要: 原来字典NSArray *arr = @[@{@"index" : @"3", @"key" : @"value"}, @{@"index" : @"4", @"key" : @"value"}, @{@"index" : @"1", @"key" : @"value"}, @{@"index" : 阅读全文
posted @ 2016-03-27 10:29 许广 阅读(930) 评论(0) 推荐(0) 编辑
  2016年3月26日
摘要: NSString *str = @"http://pic92.nipic.com/file/20160323/22486259_160209631000_2.jpg"; NSLog(@"lastPathComponent = %@",[str lastPathComponent]); 通过NSURL 阅读全文
posted @ 2016-03-26 22:54 许广 阅读(489) 评论(0) 推荐(0) 编辑
  2016年2月25日
摘要: //缩放图片(平铺) - (UIImage *)resizeImage:(NSString *)imgName { UIImage *bgImage = [UIImage imageNamed:imgName]; //缩放图片 bgImage = [bgImage stretchableImageW 阅读全文
posted @ 2016-02-25 23:40 许广 阅读(566) 评论(0) 推荐(0) 编辑
  2015年7月2日
摘要: 首先引用百度 script然后js 阅读全文
posted @ 2015-07-02 14:30 许广 阅读(1895) 评论(0) 推荐(0) 编辑
  2015年4月15日
摘要: Asp.net MVC 插件式应用框架2013年05月13日 10:16供稿中心: 互联网运营部摘要:这几年来做了很多个网站系统,一直坚持使用asp.net mvc建站,每次都从头开始做Layout,CSS,做权限管理等等,有点恼火,将这几年的代码好好整理了一下,准备搭建一个框架。这几年来做了很多个... 阅读全文
posted @ 2015-04-15 15:37 许广 阅读(458) 评论(0) 推荐(1) 编辑
  2015年3月19日
摘要: js端:$.ajax({ type : "get", async : false, url :url, data: 'bid=0&xingming=' + uName + '&phone=' + uTel + '&BName=' + uLP + '&... 阅读全文
posted @ 2015-03-19 14:23 许广 阅读(172) 评论(0) 推荐(0) 编辑